| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_EXTENSIONS_EXTENSION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 8 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 9 | 9 |
| 10 // TODO(port): Port these files. | 10 // TODO(port): Port these files. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public RenderViewHostDelegate { | 26 public RenderViewHostDelegate { |
| 27 public: | 27 public: |
| 28 ExtensionView(Extension* extension, const GURL& url, Profile* profile); | 28 ExtensionView(Extension* extension, const GURL& url, Profile* profile); |
| 29 | 29 |
| 30 // HWNDHtmlView | 30 // HWNDHtmlView |
| 31 virtual void CreatingRenderer(); | 31 virtual void CreatingRenderer(); |
| 32 | 32 |
| 33 // RenderViewHostDelegate | 33 // RenderViewHostDelegate |
| 34 virtual Profile* GetProfile() const { return profile_; } | 34 virtual Profile* GetProfile() const { return profile_; } |
| 35 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 35 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 36 virtual void DidContentsPreferredWidthChange(const int pref_width); |
| 37 virtual void DidStopLoading(RenderViewHost* render_view_host, |
| 38 int32 page_id); |
| 36 virtual WebPreferences GetWebkitPrefs(); | 39 virtual WebPreferences GetWebkitPrefs(); |
| 37 virtual void RunJavaScriptMessage( | 40 virtual void RunJavaScriptMessage( |
| 38 const std::wstring& message, | 41 const std::wstring& message, |
| 39 const std::wstring& default_prompt, | 42 const std::wstring& default_prompt, |
| 40 const GURL& frame_url, | 43 const GURL& frame_url, |
| 41 const int flags, | 44 const int flags, |
| 42 IPC::Message* reply_msg, | 45 IPC::Message* reply_msg, |
| 43 bool* did_suppress_message); | 46 bool* did_suppress_message); |
| 44 virtual void DidStartLoading(RenderViewHost* render_view_host, | 47 virtual void DidStartLoading(RenderViewHost* render_view_host, |
| 45 int32 page_id); | 48 int32 page_id); |
| 46 | 49 |
| 47 Extension* extension() { return extension_; } | 50 Extension* extension() { return extension_; } |
| 48 private: | 51 private: |
| 49 // The extension that we're hosting in this view. | 52 // The extension that we're hosting in this view. |
| 50 Extension* extension_; | 53 Extension* extension_; |
| 51 | 54 |
| 52 // The profile that owns this extension. | 55 // The profile that owns this extension. |
| 53 Profile* profile_; | 56 Profile* profile_; |
| 54 | 57 |
| 55 DISALLOW_COPY_AND_ASSIGN(ExtensionView); | 58 DISALLOW_COPY_AND_ASSIGN(ExtensionView); |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |
| OLD | NEW |