OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/extension_toolbar_model.h" | 8 #include "chrome/browser/extensions/extension_toolbar_model.h" |
9 #include "chrome/browser/ui/views/browser_action_view.h" | 9 #include "chrome/browser/ui/views/browser_action_view.h" |
10 #include "chrome/browser/ui/views/extensions/browser_action_overflow_menu_contro
ller.h" | 10 #include "chrome/browser/ui/views/extensions/browser_action_overflow_menu_contro
ller.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Returns how many browser actions are visible. | 150 // Returns how many browser actions are visible. |
151 size_t VisibleBrowserActions() const; | 151 size_t VisibleBrowserActions() const; |
152 | 152 |
153 // Overridden from views::View: | 153 // Overridden from views::View: |
154 virtual gfx::Size GetPreferredSize() OVERRIDE; | 154 virtual gfx::Size GetPreferredSize() OVERRIDE; |
155 virtual void Layout() OVERRIDE; | 155 virtual void Layout() OVERRIDE; |
156 virtual bool GetDropFormats(int* formats, | 156 virtual bool GetDropFormats(int* formats, |
157 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 157 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
158 virtual bool AreDropTypesRequired() OVERRIDE; | 158 virtual bool AreDropTypesRequired() OVERRIDE; |
159 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; | 159 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; |
160 virtual void OnDragEntered(const views::DropTargetEvent& event) OVERRIDE; | 160 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
161 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; | 161 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
162 virtual void OnDragExited() OVERRIDE; | 162 virtual void OnDragExited() OVERRIDE; |
163 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; | 163 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
164 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 164 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
165 | 165 |
166 // Overridden from views::MenuButtonListener: | 166 // Overridden from views::MenuButtonListener: |
167 virtual void OnMenuButtonClicked(views::View* source, | 167 virtual void OnMenuButtonClicked(views::View* source, |
168 const gfx::Point& point) OVERRIDE; | 168 const gfx::Point& point) OVERRIDE; |
169 | 169 |
170 // Overridden from views::DragController: | 170 // Overridden from views::DragController: |
171 virtual void WriteDragDataForView(View* sender, | 171 virtual void WriteDragDataForView(View* sender, |
172 const gfx::Point& press_pt, | 172 const gfx::Point& press_pt, |
173 ui::OSExchangeData* data) OVERRIDE; | 173 ui::OSExchangeData* data) OVERRIDE; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 358 |
359 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 359 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
360 | 360 |
361 // Handles delayed showing of the overflow menu when hovering. | 361 // Handles delayed showing of the overflow menu when hovering. |
362 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 362 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
363 | 363 |
364 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 364 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
365 }; | 365 }; |
366 | 366 |
367 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 367 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
OLD | NEW |