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

Side by Side Diff: chrome/browser/ui/views/toolbar/back_button.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BACK_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" 9 #include "chrome/browser/ui/views/toolbar/toolbar_button.h"
10 10
11 namespace ui { 11 namespace ui {
12 class MenuModel; 12 class MenuModel;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 class Border;
17 class ButtonListener; 16 class ButtonListener;
18 } 17 }
19 18
20 // A subclass of ToolbarButton to allow the back button's hit test region to 19 // A subclass of ToolbarButton to allow the back button's hit test region to
21 // extend all the way to the start of the toolbar (i.e. the screen edge) in 20 // extend all the way to the start of the toolbar (i.e. the screen edge) in
22 // maximized mode, to benefit from Fitt's Law. The button images and focus 21 // maximized mode, to benefit from Fitt's Law. The button images and focus
23 // border are still drawn with the normal square shape. 22 // border are still drawn with the normal square shape.
24 class BackButton : public ToolbarButton { 23 class BackButton : public ToolbarButton {
25 public: 24 public:
26 // Takes ownership of the |model|, which can be null if no menu 25 // Takes ownership of the |model|, which can be null if no menu
(...skipping 15 matching lines...) Expand all
42 gfx::Rect GetThemePaintRect() const override; 41 gfx::Rect GetThemePaintRect() const override;
43 42
44 // Any leading margin to be applied. Used when the back button is in 43 // Any leading margin to be applied. Used when the back button is in
45 // a maximized state to extend to the full window width. 44 // a maximized state to extend to the full window width.
46 int margin_leading_; 45 int margin_leading_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(BackButton); 47 DISALLOW_COPY_AND_ASSIGN(BackButton);
49 }; 48 };
50 49
51 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_ 50 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu.h ('k') | chrome/browser/ui/views/toolbar/browser_actions_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698