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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_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: 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.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 (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_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_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/context_menu_controller.h" 10 #include "ui/views/context_menu_controller.h"
(...skipping 12 matching lines...) Expand all
23 // BookmarkBarInstructionsView shows a description of the bookmarks bar along 23 // BookmarkBarInstructionsView shows a description of the bookmarks bar along
24 // with a link to import bookmarks. Clicking the link results in notifying the 24 // with a link to import bookmarks. Clicking the link results in notifying the
25 // delegate. 25 // delegate.
26 class BookmarkBarInstructionsView : public views::View, 26 class BookmarkBarInstructionsView : public views::View,
27 public views::LinkListener, 27 public views::LinkListener,
28 public views::ContextMenuController { 28 public views::ContextMenuController {
29 public: 29 public:
30 explicit BookmarkBarInstructionsView( 30 explicit BookmarkBarInstructionsView(
31 BookmarkBarInstructionsDelegate* delegate); 31 BookmarkBarInstructionsDelegate* delegate);
32 32
33 // views::View overrides. 33 private:
34 // views::View:
34 gfx::Size GetPreferredSize() const override; 35 gfx::Size GetPreferredSize() const override;
35 void Layout() override; 36 void Layout() override;
37 const char* GetClassName() const override;
36 void OnThemeChanged() override; 38 void OnThemeChanged() override;
37 void ViewHierarchyChanged( 39 void ViewHierarchyChanged(
38 const ViewHierarchyChangedDetails& details) override; 40 const ViewHierarchyChangedDetails& details) override;
39 void GetAccessibleState(ui::AXViewState* state) override; 41 void GetAccessibleState(ui::AXViewState* state) override;
40 42
41 // views::LinkListener overrides. 43 // views::LinkListener:
42 void LinkClicked(views::Link* source, int event_flags) override; 44 void LinkClicked(views::Link* source, int event_flags) override;
43 45
44 private: 46 // views::ContextMenuController:
45 void ShowContextMenuForView(views::View* source, 47 void ShowContextMenuForView(views::View* source,
46 const gfx::Point& point, 48 const gfx::Point& point,
47 ui::MenuSourceType source_type) override; 49 ui::MenuSourceType source_type) override;
48 50
49 void UpdateColors(); 51 void UpdateColors();
50 52
51 BookmarkBarInstructionsDelegate* delegate_; 53 BookmarkBarInstructionsDelegate* delegate_;
52 54
53 views::Label* instructions_; 55 views::Label* instructions_;
54 views::Link* import_link_; 56 views::Link* import_link_;
55 57
56 // The baseline of the child views. This is -1 if none of the views support a 58 // The baseline of the child views. This is -1 if none of the views support a
57 // baseline. 59 // baseline.
58 int baseline_; 60 int baseline_;
59 61
60 // Have the colors of the child views been updated? This is initially false 62 // Have the colors of the child views been updated? This is initially false
61 // and set to true once we have a valid ThemeProvider. 63 // and set to true once we have a valid ThemeProvider.
62 bool updated_colors_; 64 bool updated_colors_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); 66 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView);
65 }; 67 };
66 68
67 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ 69 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698