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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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
(...skipping 19 matching lines...) Expand all
30 ui::MenuModel* model); 30 ui::MenuModel* model);
31 ~BackButton() override; 31 ~BackButton() override;
32 32
33 // Sets |margin_leading_| when the browser is maximized and updates layout 33 // Sets |margin_leading_| when the browser is maximized and updates layout
34 // to make the focus rectangle centered. 34 // to make the focus rectangle centered.
35 void SetLeadingMargin(int margin); 35 void SetLeadingMargin(int margin);
36 36
37 private: 37 private:
38 // ToolbarButton: 38 // ToolbarButton:
39 const char* GetClassName() const override; 39 const char* GetClassName() const override;
40 scoped_ptr<views::LabelButtonBorder> CreateDefaultBorder() const override; 40 std::unique_ptr<views::LabelButtonBorder> CreateDefaultBorder()
41 const override;
41 gfx::Rect GetThemePaintRect() const override; 42 gfx::Rect GetThemePaintRect() const override;
42 43
43 // Any leading margin to be applied. Used when the back button is in 44 // Any leading margin to be applied. Used when the back button is in
44 // a maximized state to extend to the full window width. 45 // a maximized state to extend to the full window width.
45 int margin_leading_; 46 int margin_leading_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(BackButton); 48 DISALLOW_COPY_AND_ASSIGN(BackButton);
48 }; 49 };
49 50
50 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_ 51 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu_button.cc ('k') | chrome/browser/ui/views/toolbar/back_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698