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_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.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 23 matching lines...) Expand all Loading... |
34 const DragEventSourceInfo& event_info) OVERRIDE; | 34 const DragEventSourceInfo& event_info) OVERRIDE; |
35 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 35 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
36 virtual void GotFocus() OVERRIDE; | 36 virtual void GotFocus() OVERRIDE; |
37 virtual void TakeFocus(bool reverse) OVERRIDE; | 37 virtual void TakeFocus(bool reverse) OVERRIDE; |
38 | 38 |
39 // WebContentsView: | 39 // WebContentsView: |
40 virtual void CreateView(const gfx::Size& initial_size, | 40 virtual void CreateView(const gfx::Size& initial_size, |
41 gfx::NativeView context) OVERRIDE; | 41 gfx::NativeView context) OVERRIDE; |
42 virtual RenderWidgetHostView* CreateViewForWidget( | 42 virtual RenderWidgetHostView* CreateViewForWidget( |
43 RenderWidgetHost* render_widget_host) OVERRIDE; | 43 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 44 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
| 45 RenderWidgetHost* render_widget_host) OVERRIDE; |
44 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 46 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
45 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 47 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
46 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 48 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
47 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 49 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
48 virtual void SetPageTitle(const string16& title) OVERRIDE; | 50 virtual void SetPageTitle(const string16& title) OVERRIDE; |
49 virtual void OnTabCrashed(base::TerminationStatus status, | 51 virtual void OnTabCrashed(base::TerminationStatus status, |
50 int error_code) OVERRIDE; | 52 int error_code) OVERRIDE; |
51 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 53 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
52 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 54 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
53 virtual void Focus() OVERRIDE; | 55 virtual void Focus() OVERRIDE; |
54 virtual void SetInitialFocus() OVERRIDE; | 56 virtual void SetInitialFocus() OVERRIDE; |
55 virtual void StoreFocus() OVERRIDE; | 57 virtual void StoreFocus() OVERRIDE; |
56 virtual void RestoreFocus() OVERRIDE; | 58 virtual void RestoreFocus() OVERRIDE; |
57 virtual WebDropData* GetDropData() const OVERRIDE; | 59 virtual WebDropData* GetDropData() const OVERRIDE; |
58 virtual bool IsEventTracking() const OVERRIDE; | 60 virtual bool IsEventTracking() const OVERRIDE; |
59 virtual void CloseTabAfterEventTracking() OVERRIDE; | 61 virtual void CloseTabAfterEventTracking() OVERRIDE; |
60 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 62 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
61 #if defined(OS_MACOSX) | 63 #if defined(OS_MACOSX) |
62 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; | 64 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; |
63 #endif | 65 #endif |
64 | 66 |
65 private: | 67 private: |
66 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); | 68 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); |
67 }; | 69 }; |
68 | 70 |
69 } // namespace content | 71 } // namespace content |
70 | 72 |
71 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 73 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |