| 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/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/views/context_menu_controller.h" | 10 #include "ui/views/context_menu_controller.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 BookmarkBarInstructionsDelegate* delegate); | 31 BookmarkBarInstructionsDelegate* delegate); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // views::View: | 34 // views::View: |
| 35 gfx::Size GetPreferredSize() const override; | 35 gfx::Size GetPreferredSize() const override; |
| 36 void Layout() override; | 36 void Layout() override; |
| 37 const char* GetClassName() const override; | 37 const char* GetClassName() const override; |
| 38 void OnThemeChanged() override; | 38 void OnThemeChanged() override; |
| 39 void ViewHierarchyChanged( | 39 void ViewHierarchyChanged( |
| 40 const ViewHierarchyChangedDetails& details) override; | 40 const ViewHierarchyChangedDetails& details) override; |
| 41 void GetAccessibleState(ui::AXViewState* state) override; | 41 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 42 | 42 |
| 43 // views::LinkListener: | 43 // views::LinkListener: |
| 44 void LinkClicked(views::Link* source, int event_flags) override; | 44 void LinkClicked(views::Link* source, int event_flags) override; |
| 45 | 45 |
| 46 // views::ContextMenuController: | 46 // views::ContextMenuController: |
| 47 void ShowContextMenuForView(views::View* source, | 47 void ShowContextMenuForView(views::View* source, |
| 48 const gfx::Point& point, | 48 const gfx::Point& point, |
| 49 ui::MenuSourceType source_type) override; | 49 ui::MenuSourceType source_type) override; |
| 50 | 50 |
| 51 void UpdateColors(); | 51 void UpdateColors(); |
| 52 | 52 |
| 53 BookmarkBarInstructionsDelegate* delegate_; | 53 BookmarkBarInstructionsDelegate* delegate_; |
| 54 | 54 |
| 55 views::Label* instructions_; | 55 views::Label* instructions_; |
| 56 views::Link* import_link_; | 56 views::Link* import_link_; |
| 57 | 57 |
| 58 // Have the colors of the child views been updated? This is initially false | 58 // Have the colors of the child views been updated? This is initially false |
| 59 // and set to true once we have a valid ThemeProvider. | 59 // and set to true once we have a valid ThemeProvider. |
| 60 bool updated_colors_; | 60 bool updated_colors_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); | 62 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ |
| OLD | NEW |