| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_MAIN_MENU_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 bool user_gesture, | 156 bool user_gesture, |
| 157 const GURL& creator_url); | 157 const GURL& creator_url); |
| 158 virtual void ShowCreatedWidget(int route_id, | 158 virtual void ShowCreatedWidget(int route_id, |
| 159 const gfx::Rect& initial_pos) {} | 159 const gfx::Rect& initial_pos) {} |
| 160 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 160 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 161 virtual void StartDragging(const WebDropData& drop_data, | 161 virtual void StartDragging(const WebDropData& drop_data, |
| 162 WebKit::WebDragOperationsMask allowed_ops) {} | 162 WebKit::WebDragOperationsMask allowed_ops) {} |
| 163 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 163 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 164 virtual void GotFocus() {} | 164 virtual void GotFocus() {} |
| 165 virtual void TakeFocus(bool reverse) {} | 165 virtual void TakeFocus(bool reverse) {} |
| 166 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { | 166 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 167 bool* is_keyboard_shortcut) { |
| 167 return false; | 168 return false; |
| 168 } | 169 } |
| 169 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 170 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 170 return false; | |
| 171 } | |
| 172 virtual void HandleMouseEvent() {} | 171 virtual void HandleMouseEvent() {} |
| 173 virtual void HandleMouseLeave() {} | 172 virtual void HandleMouseLeave() {} |
| 174 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 173 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 175 | 174 |
| 176 // The currently active browser. We use this to open urls. | 175 // The currently active browser. We use this to open urls. |
| 177 Browser* browser_; | 176 Browser* browser_; |
| 178 | 177 |
| 179 // The widget displaying the rwvh_. | 178 // The widget displaying the rwvh_. |
| 180 views::WidgetGtk* popup_; | 179 views::WidgetGtk* popup_; |
| 181 | 180 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 201 | 200 |
| 202 // True if the popup has ever been shown. | 201 // True if the popup has ever been shown. |
| 203 bool has_shown_; | 202 bool has_shown_; |
| 204 | 203 |
| 205 DISALLOW_COPY_AND_ASSIGN(MainMenu); | 204 DISALLOW_COPY_AND_ASSIGN(MainMenu); |
| 206 }; | 205 }; |
| 207 | 206 |
| 208 } // namespace chromeos | 207 } // namespace chromeos |
| 209 | 208 |
| 210 #endif // CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ | 209 #endif // CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
| OLD | NEW |