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

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

Issue 1280953003: Enhance the material design ripple API so the ripple's state can be controlled by it's owning View. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor typo. Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/back_button.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 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 "chrome/browser/ui/views/toolbar/toolbar_button.h" 8 #include "chrome/browser/ui/views/toolbar/toolbar_button.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 11 matching lines...) Expand all
22 // border are still drawn with the normal square shape. 22 // border are still drawn with the normal square shape.
23 class BackButton : public ToolbarButton { 23 class BackButton : public ToolbarButton {
24 public: 24 public:
25 // 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
26 // is to be shown. 26 // is to be shown.
27 BackButton(views::ButtonListener* listener, ui::MenuModel* model); 27 BackButton(views::ButtonListener* listener, ui::MenuModel* model);
28 ~BackButton() override; 28 ~BackButton() override;
29 29
30 void SetLeadingMargin(int margin); 30 void SetLeadingMargin(int margin);
31 31
32 protected:
33 // ToolbarButton:
34 void LayoutInkDrop() override;
35
32 private: 36 private:
33 // ToolbarButton: 37 // ToolbarButton:
34 const char* GetClassName() const override; 38 const char* GetClassName() const override;
35 scoped_ptr<views::LabelButtonBorder> CreateDefaultBorder() const override; 39 scoped_ptr<views::LabelButtonBorder> CreateDefaultBorder() const override;
36 gfx::Rect GetThemePaintRect() const override; 40 gfx::Rect GetThemePaintRect() const override;
37 41
38 // Any leading margin to be applied. Used when the back button is in 42 // Any leading margin to be applied. Used when the back button is in
39 // a maximized state to extend to the full window width. 43 // a maximized state to extend to the full window width.
40 int margin_leading_; 44 int margin_leading_;
41 45
42 DISALLOW_COPY_AND_ASSIGN(BackButton); 46 DISALLOW_COPY_AND_ASSIGN(BackButton);
43 }; 47 };
44 48
45 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_ 49 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/back_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698