Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/views/toolbar_view.h

Issue 2878072: Merge 53736 - Make theme change notifications auto-propagate through the view... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698