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

Side by Side Diff: chrome/browser/ui/views/tab_icon_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TAB_ICON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/button/menu_button.h" 10 #include "ui/views/controls/button/menu_button.h"
(...skipping 15 matching lines...) Expand all
26 TabIconView(chrome::TabIconViewModel* model, 26 TabIconView(chrome::TabIconViewModel* model,
27 views::MenuButtonListener* menu_button_listener); 27 views::MenuButtonListener* menu_button_listener);
28 ~TabIconView() override; 28 ~TabIconView() override;
29 29
30 // Invoke whenever the tab state changes or the throbber should update. 30 // Invoke whenever the tab state changes or the throbber should update.
31 void Update(); 31 void Update();
32 32
33 // Set the throbber to the light style (for use on dark backgrounds). 33 // Set the throbber to the light style (for use on dark backgrounds).
34 void set_is_light(bool is_light) { is_light_ = is_light; } 34 void set_is_light(bool is_light) { is_light_ = is_light; }
35 35
36 // Overridden from View 36 // views::View:
Peter Kasting 2015/01/23 07:28:10 Nit: This should refer to view::MenuButton instead
oshima 2015/01/24 01:23:07 Done. reordered & made them private.
37 void OnPaint(gfx::Canvas* canvas) override; 37 void OnPaint(gfx::Canvas* canvas) override;
38 const char* GetClassName() const override;
38 gfx::Size GetPreferredSize() const override; 39 gfx::Size GetPreferredSize() const override;
39 40
40 private: 41 private:
41 void PaintThrobber(gfx::Canvas* canvas); 42 void PaintThrobber(gfx::Canvas* canvas);
42 void PaintFavicon(gfx::Canvas* canvas, const gfx::ImageSkia& image); 43 void PaintFavicon(gfx::Canvas* canvas, const gfx::ImageSkia& image);
43 void PaintIcon(gfx::Canvas* canvas, 44 void PaintIcon(gfx::Canvas* canvas,
44 const gfx::ImageSkia& image, 45 const gfx::ImageSkia& image,
45 int src_x, 46 int src_x,
46 int src_y, 47 int src_y,
47 int src_w, 48 int src_w,
(...skipping 10 matching lines...) Expand all
58 bool is_light_; 59 bool is_light_;
59 60
60 // Current frame of the throbber being painted. This is only used if 61 // Current frame of the throbber being painted. This is only used if
61 // throbber_running_ is true. 62 // throbber_running_ is true.
62 int throbber_frame_; 63 int throbber_frame_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(TabIconView); 65 DISALLOW_COPY_AND_ASSIGN(TabIconView);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698