OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 const NotificationDetails& details); | 112 const NotificationDetails& details); |
113 | 113 |
114 // Overridden from ui::AcceleratorProvider: | 114 // Overridden from ui::AcceleratorProvider: |
115 virtual bool GetAcceleratorForCommandId(int command_id, | 115 virtual bool GetAcceleratorForCommandId(int command_id, |
116 ui::Accelerator* accelerator); | 116 ui::Accelerator* accelerator); |
117 | 117 |
118 // Overridden from views::View: | 118 // Overridden from views::View: |
119 virtual gfx::Size GetPreferredSize(); | 119 virtual gfx::Size GetPreferredSize(); |
120 virtual void Layout(); | 120 virtual void Layout(); |
121 virtual void Paint(gfx::Canvas* canvas); | 121 virtual void Paint(gfx::Canvas* canvas); |
| 122 virtual bool GetDropFormats( |
| 123 int* formats, |
| 124 std::set<OSExchangeData::CustomFormat>* custom_formats); |
| 125 virtual bool CanDrop(const ui::OSExchangeData& data); |
| 126 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
| 127 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
122 virtual void OnThemeChanged(); | 128 virtual void OnThemeChanged(); |
123 | 129 |
124 // The apparent horizontal space between most items, and the vertical padding | 130 // The apparent horizontal space between most items, and the vertical padding |
125 // above and below them. | 131 // above and below them. |
126 static const int kStandardSpacing; | 132 static const int kStandardSpacing; |
127 // The top of the toolbar has an edge we have to skip over in addition to the | 133 // The top of the toolbar has an edge we have to skip over in addition to the |
128 // standard spacing. | 134 // standard spacing. |
129 static const int kVertSpacing; | 135 static const int kVertSpacing; |
130 | 136 |
131 protected: | 137 protected: |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 228 |
223 // If non-null the destructor sets this to true. This is set to a non-null | 229 // If non-null the destructor sets this to true. This is set to a non-null |
224 // while the menu is showing and used to detect if the menu was deleted while | 230 // while the menu is showing and used to detect if the menu was deleted while |
225 // running. | 231 // running. |
226 bool* destroyed_flag_; | 232 bool* destroyed_flag_; |
227 | 233 |
228 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 234 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
229 }; | 235 }; |
230 | 236 |
231 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 237 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
OLD | NEW |