summaryrefslogtreecommitdiff
path: root/src/controls/FWebCtrl_GeolocationConfirmPopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/FWebCtrl_GeolocationConfirmPopup.h')
-rwxr-xr-xsrc/controls/FWebCtrl_GeolocationConfirmPopup.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/controls/FWebCtrl_GeolocationConfirmPopup.h b/src/controls/FWebCtrl_GeolocationConfirmPopup.h
new file mode 100755
index 0000000..843dbe4
--- /dev/null
+++ b/src/controls/FWebCtrl_GeolocationConfirmPopup.h
@@ -0,0 +1,96 @@
+//
+// Open Service Platform
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file FWebCtrl_GeoLocationConfirmPopup.h
+ * @brief The file contains the definition of _GeolocationConfirmPopup class.
+ */
+
+#ifndef _FWEB_CTRL_INTERNAL_GEOLOCATION_CONFIRM_POPUP_H_
+#define _FWEB_CTRL_INTERNAL_GEOLOCATION_CONFIRM_POPUP_H_
+
+#include <unique_ptr.h>
+#include <EWebKit2.h>
+#include <FBase.h>
+#include <FBaseString.h>
+#include <FUi.h>
+#include <FUiIActionEventListener.h>
+
+namespace Tizen { namespace Ui
+{
+class IActionEventListener;
+}} // Tizen::Ui
+
+namespace Tizen { namespace Ui { namespace Controls
+{
+class Popup;
+}}} // Tizen::Ui::Controls
+
+namespace Tizen { namespace Web { namespace Controls
+{
+
+enum _GeolocationPopupButtonId
+{
+ ID_BUTTON_GEOLOCATION_PROCESS,
+ ID_BUTTON_GEOLOCATION_CANCEL
+};
+
+class _GeolocationConfirmPopup
+ : public Tizen::Base::Object
+ , virtual public Tizen::Ui::IActionEventListener
+{
+
+public:
+ /**
+ * Constructor
+ */
+ _GeolocationConfirmPopup(void);
+
+ /**
+ * Destructor
+ */
+ virtual ~_GeolocationConfirmPopup(void);
+
+ result Construct(Ewk_Geolocation_Permission_Data* pPermission);
+
+ result ShowPopup(void);
+
+ result HidePopup(void);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+private:
+ _GeolocationConfirmPopup(const _GeolocationConfirmPopup&);
+
+ result SetGeolocationPermission(bool enable);
+
+ result AddGeolocationDb(bool enable);
+
+ _GeolocationConfirmPopup& operator =(const _GeolocationConfirmPopup&);
+
+private:
+ std::unique_ptr<Tizen::Ui::Controls::Popup> __pPopup;
+
+ Tizen::Ui::Controls::CheckButton* __pCheckButton;
+
+ Ewk_Geolocation_Permission_Data* __pGeolocationHandler;
+
+ int __modal;
+}; // _GeolocationConfirmPopup
+
+}}} // Tizen::Web::Controls
+#endif // _FWEB_CTRL_GEOLOCATION_COMMON_POPUP_H_