Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 13 matching lines...) Expand all Loading... | |
| 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 // views::View overrides. |
| 34 const char* GetClassName() const override; | |
|
Peter Kasting
2015/01/23 07:28:10
In theory, these are listed in the same order that
oshima
2015/01/24 01:23:07
Done. Made others private too as they're not calle
| |
| 34 gfx::Size GetPreferredSize() const override; | 35 gfx::Size GetPreferredSize() const override; |
| 35 void Layout() override; | 36 void Layout() override; |
| 36 void OnThemeChanged() override; | 37 void OnThemeChanged() override; |
| 37 void ViewHierarchyChanged( | 38 void ViewHierarchyChanged( |
| 38 const ViewHierarchyChangedDetails& details) override; | 39 const ViewHierarchyChangedDetails& details) override; |
| 39 void GetAccessibleState(ui::AXViewState* state) override; | 40 void GetAccessibleState(ui::AXViewState* state) override; |
| 40 | 41 |
| 41 // views::LinkListener overrides. | 42 // views::LinkListener overrides. |
| 42 void LinkClicked(views::Link* source, int event_flags) override; | 43 void LinkClicked(views::Link* source, int event_flags) override; |
| 43 | 44 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 58 int baseline_; | 59 int baseline_; |
| 59 | 60 |
| 60 // Have the colors of the child views been updated? This is initially false | 61 // Have the colors of the child views been updated? This is initially false |
| 61 // and set to true once we have a valid ThemeProvider. | 62 // and set to true once we have a valid ThemeProvider. |
| 62 bool updated_colors_; | 63 bool updated_colors_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); | 65 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ | 68 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ |
| OLD | NEW |