OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 explicit AppLaunchView(const std::string& app_id); | 50 explicit AppLaunchView(const std::string& app_id); |
51 virtual ~AppLaunchView(); | 51 virtual ~AppLaunchView(); |
52 | 52 |
53 // views::WidgetDelegate overrides. | 53 // views::WidgetDelegate overrides. |
54 virtual views::View* GetContentsView() OVERRIDE; | 54 virtual views::View* GetContentsView() OVERRIDE; |
55 | 55 |
56 // content::WebContentsObserver overrides. | 56 // content::WebContentsObserver overrides. |
57 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 57 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
58 | 58 |
59 void Show(); | 59 void Show(); |
60 void Close(); | |
61 | 60 |
62 // Updates UI state of the app launch splash screen. | 61 // Updates UI state of the app launch splash screen. |
63 void UpdateState(AppLaunchState state); | 62 void UpdateState(AppLaunchState state); |
64 | 63 |
65 // Creates and adds web contents to our view. | 64 // Creates and adds web contents to our view. |
66 void AddChildWebContents(); | 65 void AddChildWebContents(); |
67 | 66 |
68 // Loads the splash screen in the WebView's webcontent. If the webcontents | 67 // Loads the splash screen in the WebView's webcontent. If the webcontents |
69 // don't exist, they'll be created by WebView. | 68 // don't exist, they'll be created by WebView. |
70 void LoadSplashScreen(); | 69 void LoadSplashScreen(); |
(...skipping 18 matching lines...) Expand all Loading... |
89 AppLaunchUI* app_launch_ui_; // Not owned. | 88 AppLaunchUI* app_launch_ui_; // Not owned. |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(AppLaunchView); | 90 DISALLOW_COPY_AND_ASSIGN(AppLaunchView); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace internal | 93 } // namespace internal |
95 | 94 |
96 } // namespace chromeos | 95 } // namespace chromeos |
97 | 96 |
98 #endif // CHROME_BROWSER_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_UI_APP_LAUNCH_VIEW_H_ |
OLD | NEW |