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 ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ | 5 #ifndef ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ |
6 #define ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ | 6 #define ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 private: | 48 private: |
49 friend class test::ScreensaverViewTest; | 49 friend class test::ScreensaverViewTest; |
50 | 50 |
51 explicit ScreensaverView(const GURL& url); | 51 explicit ScreensaverView(const GURL& url); |
52 virtual ~ScreensaverView(); | 52 virtual ~ScreensaverView(); |
53 | 53 |
54 // views::WidgetDelegate overrides. | 54 // views::WidgetDelegate overrides. |
55 virtual views::View* GetContentsView() OVERRIDE; | 55 virtual views::View* GetContentsView() OVERRIDE; |
56 | 56 |
57 // content::WebContentsObserver overrides. | 57 // content::WebContentsObserver overrides. |
58 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 58 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
59 | 59 |
60 void Show(); | 60 void Show(); |
61 void Close(); | 61 void Close(); |
62 | 62 |
63 // Creates and adds web contents to our view. | 63 // Creates and adds web contents to our view. |
64 void AddChildWebContents(); | 64 void AddChildWebContents(); |
65 // Load the screensaver in the WebView's webcontent. If the webcontents | 65 // Load the screensaver in the WebView's webcontent. If the webcontents |
66 // don't exist, they'll be created by WebView. | 66 // don't exist, they'll be created by WebView. |
67 void LoadScreensaver(); | 67 void LoadScreensaver(); |
68 // Creates and shows a frameless full screen window containing our view. | 68 // Creates and shows a frameless full screen window containing our view. |
(...skipping 16 matching lines...) Expand all Loading... |
85 // Window that holds the screensaver webview. | 85 // Window that holds the screensaver webview. |
86 views::Widget* container_window_; | 86 views::Widget* container_window_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(ScreensaverView); | 88 DISALLOW_COPY_AND_ASSIGN(ScreensaverView); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace internal | 91 } // namespace internal |
92 } // namespace ash | 92 } // namespace ash |
93 | 93 |
94 #endif // ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ | 94 #endif // ASH_SCREENSAVER_SCREENSAVER_VIEW_H_ |
OLD | NEW |