| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool user_gesture, | 125 bool user_gesture, |
| 126 const GURL& creator_url); | 126 const GURL& creator_url); |
| 127 virtual void ShowCreatedWidget(int route_id, | 127 virtual void ShowCreatedWidget(int route_id, |
| 128 const gfx::Rect& initial_pos) {} | 128 const gfx::Rect& initial_pos) {} |
| 129 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 129 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 130 virtual void StartDragging(const WebDropData& drop_data, | 130 virtual void StartDragging(const WebDropData& drop_data, |
| 131 WebKit::WebDragOperationsMask allowed_ops) {} | 131 WebKit::WebDragOperationsMask allowed_ops) {} |
| 132 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 132 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 133 virtual void GotFocus() {} | 133 virtual void GotFocus() {} |
| 134 virtual void TakeFocus(bool reverse) {} | 134 virtual void TakeFocus(bool reverse) {} |
| 135 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { |
| 136 return false; |
| 137 } |
| 135 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 138 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 136 virtual void HandleMouseEvent() {} | 139 virtual void HandleMouseEvent() {} |
| 137 virtual void HandleMouseLeave() {} | 140 virtual void HandleMouseLeave() {} |
| 138 virtual void UpdatePreferredWidth(int pref_width) {} | 141 virtual void UpdatePreferredWidth(int pref_width) {} |
| 139 | 142 |
| 140 // The currently active browser. We use this to open urls. | 143 // The currently active browser. We use this to open urls. |
| 141 Browser* browser_; | 144 Browser* browser_; |
| 142 | 145 |
| 143 // The widget displaying the rwvh_. | 146 // The widget displaying the rwvh_. |
| 144 views::WidgetGtk* popup_; | 147 views::WidgetGtk* popup_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 158 // Delegate of the TabContents created by helper_. | 161 // Delegate of the TabContents created by helper_. |
| 159 TabContentsDelegateImpl tab_contents_delegate_; | 162 TabContentsDelegateImpl tab_contents_delegate_; |
| 160 | 163 |
| 161 // TabContents created when the user clicks a link. | 164 // TabContents created when the user clicks a link. |
| 162 scoped_ptr<TabContents> pending_contents_; | 165 scoped_ptr<TabContents> pending_contents_; |
| 163 | 166 |
| 164 DISALLOW_COPY_AND_ASSIGN(MainMenu); | 167 DISALLOW_COPY_AND_ASSIGN(MainMenu); |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 #endif // CHROME_BROWSER_CHROMEOS_CHROMEOS_VERSION_LOADER_H_ | 170 #endif // CHROME_BROWSER_CHROMEOS_CHROMEOS_VERSION_LOADER_H_ |
| OLD | NEW |