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_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ |
6 #define CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ | 6 #define CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ |
7 | 7 |
8 #include "app/gfx/native_widget_types.h" | 8 #include "app/gfx/native_widget_types.h" |
9 #include "chrome/browser/gtk/extension_view_gtk.h" | 9 #include "chrome/browser/gtk/extension_view_gtk.h" |
10 #include "chrome/browser/notifications/balloon.h" | 10 #include "chrome/browser/notifications/balloon.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void CreateNewWindow(int route_id); | 72 virtual void CreateNewWindow(int route_id); |
73 virtual void CreateNewWidget(int route_id, bool activatable) {} | 73 virtual void CreateNewWidget(int route_id, bool activatable) {} |
74 virtual void ShowCreatedWindow(int route_id, | 74 virtual void ShowCreatedWindow(int route_id, |
75 WindowOpenDisposition disposition, | 75 WindowOpenDisposition disposition, |
76 const gfx::Rect& initial_pos, | 76 const gfx::Rect& initial_pos, |
77 bool user_gesture); | 77 bool user_gesture); |
78 virtual void ShowCreatedWidget(int route_id, | 78 virtual void ShowCreatedWidget(int route_id, |
79 const gfx::Rect& initial_pos) {} | 79 const gfx::Rect& initial_pos) {} |
80 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 80 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
81 virtual void StartDragging(const WebDropData& drop_data, | 81 virtual void StartDragging(const WebDropData& drop_data, |
82 WebKit::WebDragOperationsMask allowed_ops) {} | 82 WebKit::WebDragOperationsMask allowed_ops, |
| 83 const SkBitmap& image, |
| 84 const gfx::Point& image_offset) {} |
83 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 85 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
84 virtual void GotFocus() {} | 86 virtual void GotFocus() {} |
85 virtual void TakeFocus(bool reverse) {} | 87 virtual void TakeFocus(bool reverse) {} |
86 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 88 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
87 bool* is_keyboard_shortcut) { | 89 bool* is_keyboard_shortcut) { |
88 return false; | 90 return false; |
89 } | 91 } |
90 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 92 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
91 virtual void HandleMouseEvent() {} | 93 virtual void HandleMouseEvent() {} |
92 virtual void HandleMouseLeave() {} | 94 virtual void HandleMouseLeave() {} |
(...skipping 30 matching lines...) Expand all Loading... |
123 // The GTK-specific widget host view. | 125 // The GTK-specific widget host view. |
124 RenderWidgetHostViewGtk* render_widget_host_view_; | 126 RenderWidgetHostViewGtk* render_widget_host_view_; |
125 | 127 |
126 // Common implementations of some RenderViewHostDelegate::View methods. | 128 // Common implementations of some RenderViewHostDelegate::View methods. |
127 RenderViewHostDelegateViewHelper delegate_view_helper_; | 129 RenderViewHostDelegateViewHelper delegate_view_helper_; |
128 | 130 |
129 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); | 131 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); |
130 }; | 132 }; |
131 | 133 |
132 #endif // CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ | 134 #endif // CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ |
OLD | NEW |