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_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class Browser; | 24 class Browser; |
25 class PrefService; | 25 class PrefService; |
26 class Profile; | 26 class Profile; |
27 class ToolbarActionsBar; | 27 class ToolbarActionsBar; |
28 class ToolbarActionViewController; | 28 class ToolbarActionViewController; |
29 | 29 |
30 namespace extensions { | 30 namespace extensions { |
31 class ExtensionActionManager; | 31 class ExtensionActionManager; |
32 class ExtensionMessageBubbleController; | 32 class ExtensionMessageBubbleController; |
33 class ExtensionRegistry; | 33 class ExtensionRegistry; |
34 class ExtensionSet; | |
35 } | 34 } |
36 | 35 |
37 // Model for the browser actions toolbar. This is a per-profile instance, and | 36 // Model for the browser actions toolbar. This is a per-profile instance, and |
38 // manages the user's global preferences. | 37 // manages the user's global preferences. |
39 // Each browser window will attempt to show browser actions as specified by this | 38 // Each browser window will attempt to show browser actions as specified by this |
40 // model, but if the window is too narrow, actions may end up pushed into the | 39 // model, but if the window is too narrow, actions may end up pushed into the |
41 // overflow menu on a per-window basis. Callers interested in the arrangement of | 40 // overflow menu on a per-window basis. Callers interested in the arrangement of |
42 // actions in a particular window should check that window's instance of | 41 // actions in a particular window should check that window's instance of |
43 // ToolbarActionsBar, which is responsible for the per-window layout. | 42 // ToolbarActionsBar, which is responsible for the per-window layout. |
44 class ToolbarActionsModel | 43 class ToolbarActionsModel |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 // For observing change of toolbar order preference by external entity (sync). | 340 // For observing change of toolbar order preference by external entity (sync). |
342 PrefChangeRegistrar pref_change_registrar_; | 341 PrefChangeRegistrar pref_change_registrar_; |
343 base::Closure pref_change_callback_; | 342 base::Closure pref_change_callback_; |
344 | 343 |
345 base::WeakPtrFactory<ToolbarActionsModel> weak_ptr_factory_; | 344 base::WeakPtrFactory<ToolbarActionsModel> weak_ptr_factory_; |
346 | 345 |
347 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsModel); | 346 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsModel); |
348 }; | 347 }; |
349 | 348 |
350 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ | 349 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ |
OLD | NEW |