| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| 6 #define CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ | 6 #define CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/tab_contents/tab_contents_view.h" | 10 #include "content/browser/tab_contents/tab_contents_view.h" |
| 11 | 11 |
| 12 class TestTabContentsView : public TabContentsView { | 12 class TestTabContentsView : public TabContentsView { |
| 13 public: | 13 public: |
| 14 TestTabContentsView(); | 14 TestTabContentsView(); |
| 15 virtual ~TestTabContentsView(); | 15 virtual ~TestTabContentsView(); |
| 16 | 16 |
| 17 // RenderViewHostDelegate::View: | 17 // RenderViewHostDelegate::View: |
| 18 virtual void CreateNewWindow( | 18 virtual void CreateNewWindow( |
| 19 int route_id, | 19 int route_id, |
| 20 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 20 const ViewHostMsg_CreateWindow_Params& params, |
| 21 content::ContentFrame* opener) OVERRIDE; |
| 21 virtual void CreateNewWidget(int route_id, | 22 virtual void CreateNewWidget(int route_id, |
| 22 WebKit::WebPopupType popup_type) OVERRIDE; | 23 WebKit::WebPopupType popup_type) OVERRIDE; |
| 23 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; | 24 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; |
| 24 virtual void ShowCreatedWindow(int route_id, | 25 virtual void ShowCreatedWindow(int route_id, |
| 25 WindowOpenDisposition disposition, | 26 WindowOpenDisposition disposition, |
| 26 const gfx::Rect& initial_pos, | 27 const gfx::Rect& initial_pos, |
| 27 bool user_gesture) OVERRIDE; | 28 bool user_gesture) OVERRIDE; |
| 28 virtual void ShowCreatedWidget(int route_id, | 29 virtual void ShowCreatedWidget(int route_id, |
| 29 const gfx::Rect& initial_pos) OVERRIDE; | 30 const gfx::Rect& initial_pos) OVERRIDE; |
| 30 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; | 31 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual void CloseTabAfterEventTracking() OVERRIDE; | 67 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 67 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 68 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 68 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE; | 69 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE; |
| 69 virtual void RemoveOverlayView() OVERRIDE; | 70 virtual void RemoveOverlayView() OVERRIDE; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(TestTabContentsView); | 73 DISALLOW_COPY_AND_ASSIGN(TestTabContentsView); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 #endif // CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ | 76 #endif // CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| OLD | NEW |