| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/menus/simple_menu_model.h" | 10 #include "app/menus/simple_menu_model.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual bool IsCommandIdChecked(int command_id) const; | 113 virtual bool IsCommandIdChecked(int command_id) const; |
| 114 virtual bool IsCommandIdEnabled(int command_id) const; | 114 virtual bool IsCommandIdEnabled(int command_id) const; |
| 115 virtual bool GetAcceleratorForCommandId(int command_id, | 115 virtual bool GetAcceleratorForCommandId(int command_id, |
| 116 menus::Accelerator* accelerator); | 116 menus::Accelerator* accelerator); |
| 117 virtual void ExecuteCommand(int command_id); | 117 virtual void ExecuteCommand(int command_id); |
| 118 | 118 |
| 119 // Overridden from views::View: | 119 // Overridden from views::View: |
| 120 virtual gfx::Size GetPreferredSize(); | 120 virtual gfx::Size GetPreferredSize(); |
| 121 virtual void Layout(); | 121 virtual void Layout(); |
| 122 virtual void Paint(gfx::Canvas* canvas); | 122 virtual void Paint(gfx::Canvas* canvas); |
| 123 virtual void ThemeChanged(); | 123 virtual void OnThemeChanged(); |
| 124 | 124 |
| 125 protected: | 125 protected: |
| 126 | 126 |
| 127 // Overridden from AccessibleToolbarView | 127 // Overridden from AccessibleToolbarView |
| 128 virtual views::View* GetDefaultFocusableChild(); | 128 virtual views::View* GetDefaultFocusableChild(); |
| 129 virtual void RemoveToolbarFocus(); | 129 virtual void RemoveToolbarFocus(); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 // Returns the number of pixels above the location bar in non-normal display. | 132 // Returns the number of pixels above the location bar in non-normal display. |
| 133 int PopupTopSpacing() const; | 133 int PopupTopSpacing() const; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // running. | 215 // running. |
| 216 bool* destroyed_flag_; | 216 bool* destroyed_flag_; |
| 217 | 217 |
| 218 // When collapsed, the toolbar is just a tiny strip, no controls are visible. | 218 // When collapsed, the toolbar is just a tiny strip, no controls are visible. |
| 219 bool collapsed_; | 219 bool collapsed_; |
| 220 | 220 |
| 221 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 221 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ | 224 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| OLD | NEW |