OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_LAUNCHER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_LAUNCHER_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "app/active_window_watcher_x.h" | 10 #include "app/active_window_watcher_x.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
15 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 15 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
16 #include "chrome/common/renderer_preferences.h" | 16 #include "chrome/common/renderer_preferences.h" |
17 #include "views/view.h" | 17 #include "views/view.h" |
18 | 18 |
19 class Browser; | 19 class Browser; |
20 class RenderWidgetHostViewGtk; | 20 class RenderWidgetHostViewGtk; |
21 class SiteInstance; | 21 class SiteInstance; |
22 class SkBitmap; | |
23 | 22 |
24 namespace gfx { | 23 namespace gfx { |
25 class Point; | |
26 class Size; | 24 class Size; |
27 } | 25 } |
28 namespace views { | 26 namespace views { |
29 class NativeViewHost; | 27 class NativeViewHost; |
30 class View; | 28 class View; |
31 class WidgetGtk; | 29 class WidgetGtk; |
32 } | 30 } |
33 | 31 |
34 namespace chromeos { | 32 namespace chromeos { |
35 | 33 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 virtual void CreateNewWindow(int route_id); | 161 virtual void CreateNewWindow(int route_id); |
164 virtual void CreateNewWidget(int route_id, bool activatable) {} | 162 virtual void CreateNewWidget(int route_id, bool activatable) {} |
165 virtual void ShowCreatedWindow(int route_id, | 163 virtual void ShowCreatedWindow(int route_id, |
166 WindowOpenDisposition disposition, | 164 WindowOpenDisposition disposition, |
167 const gfx::Rect& initial_pos, | 165 const gfx::Rect& initial_pos, |
168 bool user_gesture); | 166 bool user_gesture); |
169 virtual void ShowCreatedWidget(int route_id, | 167 virtual void ShowCreatedWidget(int route_id, |
170 const gfx::Rect& initial_pos) {} | 168 const gfx::Rect& initial_pos) {} |
171 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 169 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
172 virtual void StartDragging(const WebDropData& drop_data, | 170 virtual void StartDragging(const WebDropData& drop_data, |
173 WebKit::WebDragOperationsMask allowed_ops, | 171 WebKit::WebDragOperationsMask allowed_ops); |
174 const SkBitmap& image, | |
175 const gfx::Point& image_offset); | |
176 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 172 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
177 virtual void GotFocus() {} | 173 virtual void GotFocus() {} |
178 virtual void TakeFocus(bool reverse) {} | 174 virtual void TakeFocus(bool reverse) {} |
179 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 175 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
180 bool* is_keyboard_shortcut) { | 176 bool* is_keyboard_shortcut) { |
181 return false; | 177 return false; |
182 } | 178 } |
183 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 179 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
184 virtual void HandleMouseEvent() {} | 180 virtual void HandleMouseEvent() {} |
185 virtual void HandleMouseLeave() {} | 181 virtual void HandleMouseLeave() {} |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 229 |
234 // True if the popup has ever been shown. | 230 // True if the popup has ever been shown. |
235 bool has_shown_; | 231 bool has_shown_; |
236 | 232 |
237 DISALLOW_COPY_AND_ASSIGN(AppLauncher); | 233 DISALLOW_COPY_AND_ASSIGN(AppLauncher); |
238 }; | 234 }; |
239 | 235 |
240 } // namespace chromeos | 236 } // namespace chromeos |
241 | 237 |
242 #endif // CHROME_BROWSER_CHROMEOS_APP_LAUNCHER_H_ | 238 #endif // CHROME_BROWSER_CHROMEOS_APP_LAUNCHER_H_ |
OLD | NEW |