| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 106 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 107 virtual void HandleMouseMove() {} | 107 virtual void HandleMouseMove() {} |
| 108 virtual void HandleMouseDown(); | 108 virtual void HandleMouseDown(); |
| 109 virtual void HandleMouseLeave() {} | 109 virtual void HandleMouseLeave() {} |
| 110 virtual void HandleMouseUp() {} | 110 virtual void HandleMouseUp() {} |
| 111 virtual void HandleMouseActivate() {} | 111 virtual void HandleMouseActivate() {} |
| 112 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 112 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
| 113 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 113 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
| 114 | 114 |
| 115 // Enable Web UI. This has to be called before renderer is created. | 115 // Enable Web UI. This has to be called before renderer is created. |
| 116 void EnableDOMUI(); | 116 void EnableWebUI(); |
| 117 | 117 |
| 118 virtual void UpdateInspectorSetting(const std::string& key, | 118 virtual void UpdateInspectorSetting(const std::string& key, |
| 119 const std::string& value); | 119 const std::string& value); |
| 120 virtual void ClearInspectorSettings(); | 120 virtual void ClearInspectorSettings(); |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual ~BalloonHost(); | 123 virtual ~BalloonHost(); |
| 124 // Must override in platform specific implementations. | 124 // Must override in platform specific implementations. |
| 125 virtual void InitRenderWidgetHostView() = 0; | 125 virtual void InitRenderWidgetHostView() = 0; |
| 126 virtual RenderWidgetHostView* render_widget_host_view() const = 0; | 126 virtual RenderWidgetHostView* render_widget_host_view() const = 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 154 // rendering a page from an extension. | 154 // rendering a page from an extension. |
| 155 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 155 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 156 | 156 |
| 157 // A flag to enable Web UI. | 157 // A flag to enable Web UI. |
| 158 bool enable_dom_ui_; | 158 bool enable_dom_ui_; |
| 159 | 159 |
| 160 NotificationRegistrar registrar_; | 160 NotificationRegistrar registrar_; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 163 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |