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 "apps/app_window.h" | 8 #include "apps/app_window.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 public content::WebContentsObserver, | 31 public content::WebContentsObserver, |
32 public extensions::ExtensionFunctionDispatcher::Delegate { | 32 public extensions::ExtensionFunctionDispatcher::Delegate { |
33 public: | 33 public: |
34 explicit AppWindowContentsImpl(AppWindow* host); | 34 explicit AppWindowContentsImpl(AppWindow* host); |
35 virtual ~AppWindowContentsImpl(); | 35 virtual ~AppWindowContentsImpl(); |
36 | 36 |
37 // AppWindowContents | 37 // AppWindowContents |
38 virtual void Initialize(content::BrowserContext* context, | 38 virtual void Initialize(content::BrowserContext* context, |
39 const GURL& url) OVERRIDE; | 39 const GURL& url) OVERRIDE; |
40 virtual void LoadContents(int32 creator_process_id) OVERRIDE; | 40 virtual void LoadContents(int32 creator_process_id) OVERRIDE; |
41 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) OVERRIDE; | 41 virtual void NativeWindowChanged( |
| 42 extensions::NativeAppWindow* native_app_window) OVERRIDE; |
42 virtual void NativeWindowClosed() OVERRIDE; | 43 virtual void NativeWindowClosed() OVERRIDE; |
43 virtual void DispatchWindowShownForTests() const OVERRIDE; | 44 virtual void DispatchWindowShownForTests() const OVERRIDE; |
44 virtual content::WebContents* GetWebContents() const OVERRIDE; | 45 virtual content::WebContents* GetWebContents() const OVERRIDE; |
45 | 46 |
46 private: | 47 private: |
47 // content::WebContentsObserver | 48 // content::WebContentsObserver |
48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
49 | 50 |
50 // extensions::ExtensionFunctionDispatcher::Delegate | 51 // extensions::ExtensionFunctionDispatcher::Delegate |
51 virtual extensions::WindowController* GetExtensionWindowController() const | 52 virtual extensions::WindowController* GetExtensionWindowController() const |
(...skipping 10 matching lines...) Expand all Loading... |
62 scoped_ptr<content::WebContents> web_contents_; | 63 scoped_ptr<content::WebContents> web_contents_; |
63 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 64 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
64 extension_function_dispatcher_; | 65 extension_function_dispatcher_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); | 67 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace apps | 70 } // namespace apps |
70 | 71 |
71 #endif // APPS_APP_WINDOW_CONTENTS_H_ | 72 #endif // APPS_APP_WINDOW_CONTENTS_H_ |
OLD | NEW |