Update V8 to version 4.5.98.
[chromium-blink-merge.git] / ui / app_list / views / custom_launcher_page_view.h
blob0c5708c36a66a9cf5d696c699f8a2e5922f9dd83
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_APP_LIST_VIEWS_CUSTOM_LAUNCHER_PAGE_VIEW_H_
6 #define UI_APP_LIST_VIEWS_CUSTOM_LAUNCHER_PAGE_VIEW_H_
8 #include "ui/app_list/app_list_export.h"
9 #include "ui/app_list/views/app_list_page.h"
11 namespace app_list {
13 // A wrapper view around the custom launcher page web view.
14 class APP_LIST_EXPORT CustomLauncherPageView : public AppListPage {
15 public:
16 explicit CustomLauncherPageView(View* custom_launcher_page_webview);
17 ~CustomLauncherPageView() override;
19 // Gets the location of the custom launcher page in "collapsed" state. This is
20 // where the page is peeking in from the bottom of the launcher (neither full
21 // on-screen or off-screen).
22 gfx::Rect GetCollapsedLauncherPageBounds() const;
24 View* custom_launcher_page_contents() {
25 return custom_launcher_page_contents_;
28 // AppListPage overrides:
29 gfx::Rect GetPageBoundsForState(AppListModel::State state) const override;
30 void OnShown() override;
31 void OnWillBeHidden() override;
33 private:
34 View* custom_launcher_page_contents_;
36 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageView);
39 } // namespace app_list
41 #endif // UI_APP_LIST_VIEWS_CUSTOM_LAUNCHER_PAGE_VIEW_H_