| 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 26 matching lines...) Expand all Loading... |
| 37 virtual void Layout() OVERRIDE; | 37 virtual void Layout() OVERRIDE; |
| 38 virtual void OnThemeChanged() OVERRIDE; | 38 virtual void OnThemeChanged() OVERRIDE; |
| 39 virtual void ViewHierarchyChanged( | 39 virtual void ViewHierarchyChanged( |
| 40 const ViewHierarchyChangedDetails& details) OVERRIDE; | 40 const ViewHierarchyChangedDetails& details) OVERRIDE; |
| 41 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 41 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 42 | 42 |
| 43 // views::LinkListener overrides. | 43 // views::LinkListener overrides. |
| 44 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 44 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 virtual void ShowContextMenuForView(views::View* source, | 47 virtual void ShowContextMenuForView( |
| 48 const gfx::Point& point) OVERRIDE; | 48 views::View* source, |
| 49 const gfx::Point& point, |
| 50 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 49 | 51 |
| 50 void UpdateColors(); | 52 void UpdateColors(); |
| 51 | 53 |
| 52 chrome::BookmarkBarInstructionsDelegate* delegate_; | 54 chrome::BookmarkBarInstructionsDelegate* delegate_; |
| 53 | 55 |
| 54 views::Label* instructions_; | 56 views::Label* instructions_; |
| 55 views::Link* import_link_; | 57 views::Link* import_link_; |
| 56 | 58 |
| 57 // The baseline of the child views. This is -1 if none of the views support a | 59 // The baseline of the child views. This is -1 if none of the views support a |
| 58 // baseline. | 60 // baseline. |
| 59 int baseline_; | 61 int baseline_; |
| 60 | 62 |
| 61 // Have the colors of the child views been updated? This is initially false | 63 // Have the colors of the child views been updated? This is initially false |
| 62 // and set to true once we have a valid ThemeProvider. | 64 // and set to true once we have a valid ThemeProvider. |
| 63 bool updated_colors_; | 65 bool updated_colors_; |
| 64 | 66 |
| 65 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); | 67 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView); |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_ |
| OLD | NEW |