| 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 | |
| 93 private: | 91 private: |
| 94 // Overridden from views::WidgetDelegateView: | 92 // Overridden from views::WidgetDelegateView: |
| 95 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 93 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 96 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 94 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 97 virtual bool WidgetHasHitTestMask() const OVERRIDE; | 95 virtual bool WidgetHasHitTestMask() const OVERRIDE; |
| 98 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; | 96 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 99 | 97 |
| 100 // Overridden from views::View: | 98 // Overridden from views::View: |
| 101 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 99 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 102 virtual void Layout() OVERRIDE; | 100 virtual void Layout() OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 121 SigninView* signin_view_; | 119 SigninView* signin_view_; |
| 122 | 120 |
| 123 ObserverList<Observer> observers_; | 121 ObserverList<Observer> observers_; |
| 124 | 122 |
| 125 DISALLOW_COPY_AND_ASSIGN(AppListView); | 123 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 126 }; | 124 }; |
| 127 | 125 |
| 128 } // namespace app_list | 126 } // namespace app_list |
| 129 | 127 |
| 130 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 128 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |