| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 const gfx::Rect& initial_pos) {} | 155 const gfx::Rect& initial_pos) {} |
| 156 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 156 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 157 virtual void StartDragging(const WebDropData& drop_data, | 157 virtual void StartDragging(const WebDropData& drop_data, |
| 158 WebKit::WebDragOperationsMask allowed_ops) {} | 158 WebKit::WebDragOperationsMask allowed_ops) {} |
| 159 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 159 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 160 virtual void GotFocus() {} | 160 virtual void GotFocus() {} |
| 161 virtual void TakeFocus(bool reverse) {} | 161 virtual void TakeFocus(bool reverse) {} |
| 162 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { | 162 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { |
| 163 return false; | 163 return false; |
| 164 } | 164 } |
| 165 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 165 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
| 166 return false; |
| 167 } |
| 166 virtual void HandleMouseEvent() {} | 168 virtual void HandleMouseEvent() {} |
| 167 virtual void HandleMouseLeave() {} | 169 virtual void HandleMouseLeave() {} |
| 168 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 170 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 169 | 171 |
| 170 // The currently active browser. We use this to open urls. | 172 // The currently active browser. We use this to open urls. |
| 171 Browser* browser_; | 173 Browser* browser_; |
| 172 | 174 |
| 173 // The widget displaying the rwvh_. | 175 // The widget displaying the rwvh_. |
| 174 views::WidgetGtk* popup_; | 176 views::WidgetGtk* popup_; |
| 175 | 177 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 193 | 195 |
| 194 ScopedRunnableMethodFactory<MainMenu> method_factory_; | 196 ScopedRunnableMethodFactory<MainMenu> method_factory_; |
| 195 | 197 |
| 196 // True if the popup has ever been shown. | 198 // True if the popup has ever been shown. |
| 197 bool has_shown_; | 199 bool has_shown_; |
| 198 | 200 |
| 199 DISALLOW_COPY_AND_ASSIGN(MainMenu); | 201 DISALLOW_COPY_AND_ASSIGN(MainMenu); |
| 200 }; | 202 }; |
| 201 | 203 |
| 202 #endif // CHROME_BROWSER_CHROMEOS_CHROMEOS_VERSION_LOADER_H_ | 204 #endif // CHROME_BROWSER_CHROMEOS_CHROMEOS_VERSION_LOADER_H_ |
| OLD | NEW |