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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual void StartDragging(const WebDropData& drop_data, | 90 virtual void StartDragging(const WebDropData& drop_data, |
91 WebKit::WebDragOperationsMask allowed_ops) {} | 91 WebKit::WebDragOperationsMask allowed_ops) {} |
92 virtual void StartDragging(const WebDropData&, | 92 virtual void StartDragging(const WebDropData&, |
93 WebKit::WebDragOperationsMask, | 93 WebKit::WebDragOperationsMask, |
94 const SkBitmap&, | 94 const SkBitmap&, |
95 const gfx::Point&) {} | 95 const gfx::Point&) {} |
96 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 96 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
97 virtual void GotFocus() {} | 97 virtual void GotFocus() {} |
98 virtual void TakeFocus(bool reverse) {} | 98 virtual void TakeFocus(bool reverse) {} |
99 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 99 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
100 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 100 virtual RendererPreferences GetRendererPrefs( |
| 101 content::BrowserContext* context) const; |
101 | 102 |
102 // Enable Web UI. This has to be called before renderer is created. | 103 // Enable Web UI. This has to be called before renderer is created. |
103 void EnableWebUI(); | 104 void EnableWebUI(); |
104 | 105 |
105 // Returns whether the associated render view is ready. Used only for testing. | 106 // Returns whether the associated render view is ready. Used only for testing. |
106 bool IsRenderViewReady() const; | 107 bool IsRenderViewReady() const; |
107 | 108 |
108 protected: | 109 protected: |
109 virtual ~BalloonHost(); | 110 virtual ~BalloonHost(); |
110 // Must override in platform specific implementations. | 111 // Must override in platform specific implementations. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Common implementations of some RenderViewHostDelegate::View methods. | 143 // Common implementations of some RenderViewHostDelegate::View methods. |
143 RenderViewHostDelegateViewHelper delegate_view_helper_; | 144 RenderViewHostDelegateViewHelper delegate_view_helper_; |
144 | 145 |
145 // A flag to enable Web UI. | 146 // A flag to enable Web UI. |
146 bool enable_web_ui_; | 147 bool enable_web_ui_; |
147 | 148 |
148 ExtensionFunctionDispatcher extension_function_dispatcher_; | 149 ExtensionFunctionDispatcher extension_function_dispatcher_; |
149 }; | 150 }; |
150 | 151 |
151 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 152 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |