| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOOLBAR_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "base/prefs/pref_member.h" | 10 #include "base/prefs/pref_member.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void SetPaneFocusAndFocusAppMenu(); | 67 void SetPaneFocusAndFocusAppMenu(); |
| 68 | 68 |
| 69 // Returns true if the app menu is focused. | 69 // Returns true if the app menu is focused. |
| 70 bool IsAppMenuFocused(); | 70 bool IsAppMenuFocused(); |
| 71 | 71 |
| 72 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel); | 72 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel); |
| 73 | 73 |
| 74 // Returns the view to which the bookmark bubble should be anchored. | 74 // Returns the view to which the bookmark bubble should be anchored. |
| 75 views::View* GetBookmarkBubbleAnchor(); | 75 views::View* GetBookmarkBubbleAnchor(); |
| 76 | 76 |
| 77 // Returns the view to which the "Save credit card" bubble should be anchored. |
| 78 views::View* GetSaveCreditCardBubbleAnchor(); |
| 79 |
| 77 // Returns the view to which the Translate bubble should be anchored. | 80 // Returns the view to which the Translate bubble should be anchored. |
| 78 views::View* GetTranslateBubbleAnchor(); | 81 views::View* GetTranslateBubbleAnchor(); |
| 79 | 82 |
| 80 // Executes |command| registered by |extension|. | 83 // Executes |command| registered by |extension|. |
| 81 void ExecuteExtensionCommand(const extensions::Extension* extension, | 84 void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 82 const extensions::Command& command); | 85 const extensions::Command& command); |
| 83 | 86 |
| 84 // Returns the maximum width the browser actions container can have. | 87 // Returns the maximum width the browser actions container can have. |
| 85 int GetMaxBrowserActionsWidth() const; | 88 int GetMaxBrowserActionsWidth() const; |
| 86 | 89 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 226 |
| 224 // The display mode used when laying out the toolbar. | 227 // The display mode used when laying out the toolbar. |
| 225 DisplayMode display_mode_; | 228 DisplayMode display_mode_; |
| 226 | 229 |
| 227 content::NotificationRegistrar registrar_; | 230 content::NotificationRegistrar registrar_; |
| 228 | 231 |
| 229 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 232 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 230 }; | 233 }; |
| 231 | 234 |
| 232 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 235 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| OLD | NEW |