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_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const content::NotificationSource& source, | 117 const content::NotificationSource& source, |
118 const content::NotificationDetails& details) OVERRIDE; | 118 const content::NotificationDetails& details) OVERRIDE; |
119 | 119 |
120 // Overridden from ui::AcceleratorProvider: | 120 // Overridden from ui::AcceleratorProvider: |
121 virtual bool GetAcceleratorForCommandId( | 121 virtual bool GetAcceleratorForCommandId( |
122 int command_id, ui::Accelerator* accelerator) OVERRIDE; | 122 int command_id, ui::Accelerator* accelerator) OVERRIDE; |
123 | 123 |
124 // Overridden from views::View: | 124 // Overridden from views::View: |
125 virtual gfx::Size GetPreferredSize() OVERRIDE; | 125 virtual gfx::Size GetPreferredSize() OVERRIDE; |
126 virtual void Layout() OVERRIDE; | 126 virtual void Layout() OVERRIDE; |
| 127 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; |
127 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 128 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
128 virtual bool GetDropFormats( | 129 virtual bool GetDropFormats( |
129 int* formats, | 130 int* formats, |
130 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 131 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
131 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; | 132 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; |
132 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; | 133 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; |
133 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; | 134 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; |
134 virtual void OnThemeChanged() OVERRIDE; | 135 virtual void OnThemeChanged() OVERRIDE; |
135 virtual std::string GetClassName() const OVERRIDE; | 136 virtual std::string GetClassName() const OVERRIDE; |
136 virtual bool AcceleratorPressed(const ui::Accelerator& acc) OVERRIDE; | 137 virtual bool AcceleratorPressed(const ui::Accelerator& acc) OVERRIDE; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 214 |
214 // A list of listeners to call when the menu opens. | 215 // A list of listeners to call when the menu opens. |
215 ObserverList<views::MenuListener> menu_listeners_; | 216 ObserverList<views::MenuListener> menu_listeners_; |
216 | 217 |
217 content::NotificationRegistrar registrar_; | 218 content::NotificationRegistrar registrar_; |
218 | 219 |
219 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 220 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
220 }; | 221 }; |
221 | 222 |
222 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 223 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
OLD | NEW |