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/port/browser/web_contents_view_port.h" | 10 #include "content/port/browser/web_contents_view_port.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 int error_code) OVERRIDE; | 45 int error_code) OVERRIDE; |
46 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 46 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
47 virtual void Focus() OVERRIDE; | 47 virtual void Focus() OVERRIDE; |
48 virtual void SetInitialFocus() OVERRIDE; | 48 virtual void SetInitialFocus() OVERRIDE; |
49 virtual void StoreFocus() OVERRIDE; | 49 virtual void StoreFocus() OVERRIDE; |
50 virtual void RestoreFocus() OVERRIDE; | 50 virtual void RestoreFocus() OVERRIDE; |
51 virtual WebDropData* GetDropData() const OVERRIDE; | 51 virtual WebDropData* GetDropData() const OVERRIDE; |
52 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 52 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
53 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
54 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; | 54 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; |
| 55 virtual bool GetAllowOverlappingViews() const OVERRIDE; |
55 #endif | 56 #endif |
56 | 57 |
57 // WebContentsViewPort: | 58 // WebContentsViewPort: |
58 virtual void CreateView(const gfx::Size& initial_size, | 59 virtual void CreateView(const gfx::Size& initial_size, |
59 gfx::NativeView context) OVERRIDE; | 60 gfx::NativeView context) OVERRIDE; |
60 virtual RenderWidgetHostView* CreateViewForWidget( | 61 virtual RenderWidgetHostView* CreateViewForWidget( |
61 RenderWidgetHost* render_widget_host) OVERRIDE; | 62 RenderWidgetHost* render_widget_host) OVERRIDE; |
62 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 63 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
63 RenderWidgetHost* render_widget_host) OVERRIDE; | 64 RenderWidgetHost* render_widget_host) OVERRIDE; |
64 virtual void SetPageTitle(const string16& title) OVERRIDE; | 65 virtual void SetPageTitle(const string16& title) OVERRIDE; |
65 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 66 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
66 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 67 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
67 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 68 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
68 #if defined(OS_MACOSX) | 69 #if defined(OS_MACOSX) |
69 virtual bool IsEventTracking() const OVERRIDE; | 70 virtual bool IsEventTracking() const OVERRIDE; |
70 virtual void CloseTabAfterEventTracking() OVERRIDE; | 71 virtual void CloseTabAfterEventTracking() OVERRIDE; |
71 #endif | 72 #endif |
72 | 73 |
73 private: | 74 private: |
74 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); | 75 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace content | 78 } // namespace content |
78 | 79 |
79 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 80 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |