| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_LIST_APP_LIST_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 // A container for an AppListView that can be positioned and knows when it has | 12 // A container for an AppListView that can be positioned and knows when it has |
| 13 // lost focus. Has platform-specific implementations. | 13 // lost focus. Has platform-specific implementations. |
| 14 class AppList { | 14 class AppList { |
| 15 public: | 15 public: |
| 16 virtual ~AppList() {} | 16 virtual ~AppList() {} |
| 17 virtual void Show() = 0; | 17 virtual void Show() = 0; |
| 18 virtual void Hide() = 0; | 18 virtual void Hide() = 0; |
| 19 virtual void MoveNearCursor() = 0; | 19 virtual void MoveNearCursor() = 0; |
| 20 virtual bool IsVisible() = 0; | 20 virtual bool IsVisible() = 0; |
| 21 virtual void Prerender() = 0; | 21 virtual void Prerender() = 0; |
| 22 virtual gfx::NativeWindow GetWindow() = 0; | 22 virtual gfx::NativeWindow GetWindow() = 0; |
| 23 virtual void SetProfile(Profile* profile) = 0; | 23 virtual void SetProfile(Profile* profile) = 0; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_H_ | 26 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_H_ |
| OLD | NEW |