OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 APPS_APP_WINDOW_CONTENTS_H_ | 5 #ifndef APPS_APP_WINDOW_CONTENTS_H_ |
6 #define APPS_APP_WINDOW_CONTENTS_H_ | 6 #define APPS_APP_WINDOW_CONTENTS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "apps/app_window.h" | 10 #include "apps/app_window.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 public: | 37 public: |
38 explicit AppWindowContentsImpl(AppWindow* host); | 38 explicit AppWindowContentsImpl(AppWindow* host); |
39 virtual ~AppWindowContentsImpl(); | 39 virtual ~AppWindowContentsImpl(); |
40 | 40 |
41 // AppWindowContents | 41 // AppWindowContents |
42 virtual void Initialize(content::BrowserContext* context, | 42 virtual void Initialize(content::BrowserContext* context, |
43 const GURL& url) OVERRIDE; | 43 const GURL& url) OVERRIDE; |
44 virtual void LoadContents(int32 creator_process_id) OVERRIDE; | 44 virtual void LoadContents(int32 creator_process_id) OVERRIDE; |
45 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) OVERRIDE; | 45 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) OVERRIDE; |
46 virtual void NativeWindowClosed() OVERRIDE; | 46 virtual void NativeWindowClosed() OVERRIDE; |
| 47 virtual void NativeWindowFirstShown() const OVERRIDE; |
47 virtual content::WebContents* GetWebContents() const OVERRIDE; | 48 virtual content::WebContents* GetWebContents() const OVERRIDE; |
48 | 49 |
49 private: | 50 private: |
50 // content::NotificationObserver | 51 // content::NotificationObserver |
51 virtual void Observe(int type, | 52 virtual void Observe(int type, |
52 const content::NotificationSource& source, | 53 const content::NotificationSource& source, |
53 const content::NotificationDetails& details) OVERRIDE; | 54 const content::NotificationDetails& details) OVERRIDE; |
54 | 55 |
55 // content::WebContentsObserver | 56 // content::WebContentsObserver |
56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
71 scoped_ptr<content::WebContents> web_contents_; | 72 scoped_ptr<content::WebContents> web_contents_; |
72 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 73 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
73 extension_function_dispatcher_; | 74 extension_function_dispatcher_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); | 76 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace apps | 79 } // namespace apps |
79 | 80 |
80 #endif // APPS_APP_WINDOW_CONTENTS_H_ | 81 #endif // APPS_APP_WINDOW_CONTENTS_H_ |
OLD | NEW |