| 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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void AddObserver(Observer* observer); | 81 void AddObserver(Observer* observer); |
| 82 void RemoveObserver(Observer* observer); | 82 void RemoveObserver(Observer* observer); |
| 83 | 83 |
| 84 // Set a callback to be called the next time any app list paints. | 84 // Set a callback to be called the next time any app list paints. |
| 85 static void SetNextPaintCallback(const base::Closure& callback); | 85 static void SetNextPaintCallback(const base::Closure& callback); |
| 86 | 86 |
| 87 #if defined(OS_WIN) | 87 #if defined(OS_WIN) |
| 88 HWND GetHWND() const; | 88 HWND GetHWND() const; |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 AppListModel* model() { return model_.get(); } |
| 92 |
| 91 private: | 93 private: |
| 92 // Overridden from views::WidgetDelegateView: | 94 // Overridden from views::WidgetDelegateView: |
| 93 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 95 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 94 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 96 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 95 virtual bool WidgetHasHitTestMask() const OVERRIDE; | 97 virtual bool WidgetHasHitTestMask() const OVERRIDE; |
| 96 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; | 98 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 97 | 99 |
| 98 // Overridden from views::View: | 100 // Overridden from views::View: |
| 99 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 101 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 100 virtual void Layout() OVERRIDE; | 102 virtual void Layout() OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 119 SigninView* signin_view_; | 121 SigninView* signin_view_; |
| 120 | 122 |
| 121 ObserverList<Observer> observers_; | 123 ObserverList<Observer> observers_; |
| 122 | 124 |
| 123 DISALLOW_COPY_AND_ASSIGN(AppListView); | 125 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 } // namespace app_list | 128 } // namespace app_list |
| 127 | 129 |
| 128 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 130 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |