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

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

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: inline class name strings Created 5 years, 11 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_TOOLBAR_ACTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
7 7
8 #include "chrome/browser/ui/views/toolbar/toolbar_action_view_delegate_views.h" 8 #include "chrome/browser/ui/views/toolbar/toolbar_action_view_delegate_views.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Returns button icon so it can be accessed during tests. 110 // Returns button icon so it can be accessed during tests.
111 gfx::ImageSkia GetIconForTest(); 111 gfx::ImageSkia GetIconForTest();
112 112
113 bool wants_to_run_for_testing() const { return wants_to_run_; } 113 bool wants_to_run_for_testing() const { return wants_to_run_; }
114 114
115 private: 115 private:
116 // Overridden from views::View: 116 // Overridden from views::View:
117 void ViewHierarchyChanged( 117 void ViewHierarchyChanged(
118 const ViewHierarchyChangedDetails& details) override; 118 const ViewHierarchyChangedDetails& details) override;
119 void OnDragDone() override; 119 void OnDragDone() override;
120 const char* GetClassName() const override;
120 gfx::Size GetPreferredSize() const override; 121 gfx::Size GetPreferredSize() const override;
121 void PaintChildren(gfx::Canvas* canvas, 122 void PaintChildren(gfx::Canvas* canvas,
122 const views::CullSet& cull_set) override; 123 const views::CullSet& cull_set) override;
123 void OnPaintBorder(gfx::Canvas* canvas) override; 124 void OnPaintBorder(gfx::Canvas* canvas) override;
124 125
125 // ToolbarActionViewDelegateViews: 126 // ToolbarActionViewDelegateViews:
126 views::View* GetAsView() override; 127 views::View* GetAsView() override;
127 bool IsShownInMenu() override; 128 bool IsShownInMenu() override;
128 views::FocusManager* GetFocusManagerForAccelerator() override; 129 views::FocusManager* GetFocusManagerForAccelerator() override;
129 views::Widget* GetParentForContextMenu() override; 130 views::Widget* GetParentForContextMenu() override;
(...skipping 25 matching lines...) Expand all
155 156
156 // A special border to draw when the action wants to run. 157 // A special border to draw when the action wants to run.
157 scoped_ptr<views::LabelButtonBorder> wants_to_run_border_; 158 scoped_ptr<views::LabelButtonBorder> wants_to_run_border_;
158 159
159 content::NotificationRegistrar registrar_; 160 content::NotificationRegistrar registrar_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(ToolbarActionView); 162 DISALLOW_COPY_AND_ASSIGN(ToolbarActionView);
162 }; 163 };
163 164
164 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_ 165 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_ACTION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698