Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: ash/shelf/shelf_view.h

Issue 68243002: ash: Rename LauncherModelObserver to ShelfModelObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf_model_observer.h ('k') | ash/shelf/shelf_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_SHELF_SHELF_VIEW_H_ 5 #ifndef ASH_SHELF_SHELF_VIEW_H_
6 #define ASH_SHELF_SHELF_VIEW_H_ 6 #define ASH_SHELF_SHELF_VIEW_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/launcher/launcher_model_observer.h"
12 #include "ash/shelf/shelf_button_host.h" 11 #include "ash/shelf/shelf_button_host.h"
12 #include "ash/shelf/shelf_model_observer.h"
13 #include "ash/wm/gestures/shelf_gesture_handler.h" 13 #include "ash/wm/gestures/shelf_gesture_handler.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "ui/app_list/views/app_list_drag_and_drop_host.h" 15 #include "ui/app_list/views/app_list_drag_and_drop_host.h"
16 #include "ui/views/animation/bounds_animator_observer.h" 16 #include "ui/views/animation/bounds_animator_observer.h"
17 #include "ui/views/context_menu_controller.h" 17 #include "ui/views/context_menu_controller.h"
18 #include "ui/views/controls/button/button.h" 18 #include "ui/views/controls/button/button.h"
19 #include "ui/views/focus/focus_manager.h" 19 #include "ui/views/focus/focus_manager.h"
20 #include "ui/views/view.h" 20 #include "ui/views/view.h"
21 21
22 namespace views { 22 namespace views {
(...skipping 18 matching lines...) Expand all
41 namespace internal { 41 namespace internal {
42 42
43 class DragImageView; 43 class DragImageView;
44 class LauncherButton; 44 class LauncherButton;
45 class OverflowBubble; 45 class OverflowBubble;
46 class OverflowButton; 46 class OverflowButton;
47 class ShelfLayoutManager; 47 class ShelfLayoutManager;
48 class ShelfTooltipManager; 48 class ShelfTooltipManager;
49 49
50 class ASH_EXPORT ShelfView : public views::View, 50 class ASH_EXPORT ShelfView : public views::View,
51 public LauncherModelObserver, 51 public ShelfModelObserver,
52 public views::ButtonListener, 52 public views::ButtonListener,
53 public ShelfButtonHost, 53 public ShelfButtonHost,
54 public views::ContextMenuController, 54 public views::ContextMenuController,
55 public views::FocusTraversable, 55 public views::FocusTraversable,
56 public views::BoundsAnimatorObserver, 56 public views::BoundsAnimatorObserver,
57 public app_list::ApplicationDragAndDropHost { 57 public app_list::ApplicationDragAndDropHost {
58 public: 58 public:
59 ShelfView(LauncherModel* model, 59 ShelfView(LauncherModel* model,
60 LauncherDelegate* delegate, 60 LauncherDelegate* delegate,
61 ShelfLayoutManager* shelf_layout_manager); 61 ShelfLayoutManager* shelf_layout_manager);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 // Overridden from views::View: 231 // Overridden from views::View:
232 virtual gfx::Size GetPreferredSize() OVERRIDE; 232 virtual gfx::Size GetPreferredSize() OVERRIDE;
233 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 233 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
234 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; 234 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE;
235 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 235 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
236 236
237 // Overridden from ui::EventHandler: 237 // Overridden from ui::EventHandler:
238 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 238 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
239 239
240 // Overridden from LauncherModelObserver: 240 // Overridden from ShelfModelObserver:
241 virtual void LauncherItemAdded(int model_index) OVERRIDE; 241 virtual void ShelfItemAdded(int model_index) OVERRIDE;
242 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; 242 virtual void ShelfItemRemoved(int model_index, LauncherID id) OVERRIDE;
243 virtual void LauncherItemChanged(int model_index, 243 virtual void ShelfItemChanged(int model_index,
244 const ash::LauncherItem& old_item) OVERRIDE; 244 const LauncherItem& old_item) OVERRIDE;
245 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; 245 virtual void ShelfItemMoved(int start_index, int target_index) OVERRIDE;
246 virtual void LauncherStatusChanged() OVERRIDE; 246 virtual void ShelfStatusChanged() OVERRIDE;
247 247
248 // Overridden from ShelfButtonHost: 248 // Overridden from ShelfButtonHost:
249 virtual void PointerPressedOnButton(views::View* view, 249 virtual void PointerPressedOnButton(views::View* view,
250 Pointer pointer, 250 Pointer pointer,
251 const ui::LocatedEvent& event) OVERRIDE; 251 const ui::LocatedEvent& event) OVERRIDE;
252 virtual void PointerDraggedOnButton(views::View* view, 252 virtual void PointerDraggedOnButton(views::View* view,
253 Pointer pointer, 253 Pointer pointer,
254 const ui::LocatedEvent& event) OVERRIDE; 254 const ui::LocatedEvent& event) OVERRIDE;
255 virtual void PointerReleasedOnButton(views::View* view, 255 virtual void PointerReleasedOnButton(views::View* view,
256 Pointer pointer, 256 Pointer pointer,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // Holds ShelfLayoutManager. 415 // Holds ShelfLayoutManager.
416 ShelfLayoutManager* layout_manager_; 416 ShelfLayoutManager* layout_manager_;
417 417
418 DISALLOW_COPY_AND_ASSIGN(ShelfView); 418 DISALLOW_COPY_AND_ASSIGN(ShelfView);
419 }; 419 };
420 420
421 } // namespace internal 421 } // namespace internal
422 } // namespace ash 422 } // namespace ash
423 423
424 #endif // ASH_SHELF_SHELF_VIEW_H_ 424 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_model_observer.h ('k') | ash/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698