OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
7 | 7 |
8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void DidChangeBounds(const gfx::Rect& previous, | 91 virtual void DidChangeBounds(const gfx::Rect& previous, |
92 const gfx::Rect& current); | 92 const gfx::Rect& current); |
93 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 93 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
94 virtual void Paint(gfx::Canvas* canvas); | 94 virtual void Paint(gfx::Canvas* canvas); |
95 virtual void PaintChildren(gfx::Canvas* canvas); | 95 virtual void PaintChildren(gfx::Canvas* canvas); |
96 virtual bool CanDrop(const OSExchangeData& data); | 96 virtual bool CanDrop(const OSExchangeData& data); |
97 virtual void OnDragEntered(const views::DropTargetEvent& event); | 97 virtual void OnDragEntered(const views::DropTargetEvent& event); |
98 virtual int OnDragUpdated(const views::DropTargetEvent& event); | 98 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
99 virtual void OnDragExited(); | 99 virtual void OnDragExited(); |
100 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 100 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 101 virtual bool GetAccessibleName(std::wstring* name); |
| 102 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 103 virtual void SetAccessibleName(const std::wstring& name); |
101 | 104 |
102 // Called when fullscreen mode toggles on or off; this affects our layout. | 105 // Called when fullscreen mode toggles on or off; this affects our layout. |
103 void OnFullscreenToggled(bool fullscreen); | 106 void OnFullscreenToggled(bool fullscreen); |
104 | 107 |
105 // Sets the model change listener to listener. | 108 // Sets the model change listener to listener. |
106 void SetModelChangedListener(ModelChangedListener* listener) { | 109 void SetModelChangedListener(ModelChangedListener* listener) { |
107 model_changed_listener_ = listener; | 110 model_changed_listener_ = listener; |
108 } | 111 } |
109 | 112 |
110 // If the ModelChangedListener is listener, ModelChangeListener is set to | 113 // If the ModelChangedListener is listener, ModelChangeListener is set to |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 GURL bubble_url_; | 420 GURL bubble_url_; |
418 | 421 |
419 // If the bookmark bubble is showing, this is the visible ancestor of the URL. | 422 // If the bookmark bubble is showing, this is the visible ancestor of the URL. |
420 // The visible ancestor is either the other_bookmarked_button_, | 423 // The visible ancestor is either the other_bookmarked_button_, |
421 // overflow_button_ or a button on the bar. | 424 // overflow_button_ or a button on the bar. |
422 views::CustomButton* throbbing_view_; | 425 views::CustomButton* throbbing_view_; |
423 | 426 |
424 // Background for extension toolstrips. | 427 // Background for extension toolstrips. |
425 SkBitmap toolstrip_background_; | 428 SkBitmap toolstrip_background_; |
426 | 429 |
| 430 // Storage of strings needed for accessibility. |
| 431 std::wstring accessible_name_; |
| 432 |
427 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 433 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
428 }; | 434 }; |
429 | 435 |
430 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 436 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |