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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/port/browser/render_view_host_delegate_view.h" | 9 #include "content/port/browser/render_view_host_delegate_view.h" |
10 #include "content/public/browser/web_contents_view.h" | 10 #include "content/public/browser/web_contents_view.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Sets the interface to the view system. ContentViewCoreImpl is owned | 26 // Sets the interface to the view system. ContentViewCoreImpl is owned |
27 // by its Java ContentViewCore counterpart, whose lifetime is managed | 27 // by its Java ContentViewCore counterpart, whose lifetime is managed |
28 // by the UI frontend. | 28 // by the UI frontend. |
29 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 29 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
30 | 30 |
31 // WebContentsView implementation -------------------------------------------- | 31 // WebContentsView implementation -------------------------------------------- |
32 | 32 |
33 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 33 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
34 virtual RenderWidgetHostView* CreateViewForWidget( | 34 virtual RenderWidgetHostView* CreateViewForWidget( |
35 RenderWidgetHost* render_widget_host) OVERRIDE; | 35 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 36 virtual void SetView(RenderWidgetHostView* view) OVERRIDE; |
36 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 37 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
37 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 38 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
38 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 39 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
39 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 40 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
40 virtual void SetPageTitle(const string16& title) OVERRIDE; | 41 virtual void SetPageTitle(const string16& title) OVERRIDE; |
41 virtual void OnTabCrashed(base::TerminationStatus status, | 42 virtual void OnTabCrashed(base::TerminationStatus status, |
42 int error_code) OVERRIDE; | 43 int error_code) OVERRIDE; |
43 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 44 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
44 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 45 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
45 virtual void Focus() OVERRIDE; | 46 virtual void Focus() OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 80 |
80 // Interface for extensions to WebContentsView. Used to show the context menu. | 81 // Interface for extensions to WebContentsView. Used to show the context menu. |
81 scoped_ptr<WebContentsViewDelegate> delegate_; | 82 scoped_ptr<WebContentsViewDelegate> delegate_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 84 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
84 }; | 85 }; |
85 | 86 |
86 } // namespace content | 87 } // namespace content |
87 | 88 |
88 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 89 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
OLD | NEW |