summaryrefslogtreecommitdiffstats
path: root/content/test/test_web_contents_view.h
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 20:26:10 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 20:26:10 +0000
commit8643e6d85c2a41d6497d5cb9b69bea9465102e96 (patch)
tree59f2ce5b54122410f6200f69bbb3144d19ed02bd /content/test/test_web_contents_view.h
parent16128cf279e5523eac781a97600ef7d9773aa2c5 (diff)
downloadchromium_src-8643e6d85c2a41d6497d5cb9b69bea9465102e96.zip
chromium_src-8643e6d85c2a41d6497d5cb9b69bea9465102e96.tar.gz
chromium_src-8643e6d85c2a41d6497d5cb9b69bea9465102e96.tar.bz2
Rename TabContentsView to WebContentsView and move to content/public.
Also rename TestTabContentsView to TestWebContentsView. Add content namespace to both. TBR=owners (trivial updates) BUG=98716 Review URL: http://codereview.chromium.org/9241011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_web_contents_view.h')
-rw-r--r--content/test/test_web_contents_view.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/content/test/test_web_contents_view.h b/content/test/test_web_contents_view.h
new file mode 100644
index 0000000..5d07c3a
--- /dev/null
+++ b/content/test/test_web_contents_view.h
@@ -0,0 +1,79 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
+#define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "content/public/browser/web_contents_view.h"
+
+namespace content {
+
+class TestWebContentsView : public WebContentsView {
+ public:
+ TestWebContentsView();
+ virtual ~TestWebContentsView();
+
+ // RenderViewHostDelegate::View:
+ virtual void CreateNewWindow(
+ int route_id,
+ const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
+ virtual void CreateNewWidget(int route_id,
+ WebKit::WebPopupType popup_type) OVERRIDE;
+ virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
+ virtual void ShowCreatedWindow(int route_id,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture) OVERRIDE;
+ virtual void ShowCreatedWidget(int route_id,
+ const gfx::Rect& initial_pos) OVERRIDE;
+ virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
+ virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE;
+ virtual void ShowPopupMenu(const gfx::Rect& bounds,
+ int item_height,
+ double item_font_size,
+ int selected_item,
+ const std::vector<WebMenuItem>& items,
+ bool right_aligned) OVERRIDE;
+ virtual void StartDragging(const WebDropData& drop_data,
+ WebKit::WebDragOperationsMask allowed_ops,
+ const SkBitmap& image,
+ const gfx::Point& image_offset) OVERRIDE;
+ virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
+ virtual void GotFocus() OVERRIDE;
+ virtual void TakeFocus(bool reverse) OVERRIDE;
+
+ // WebContentsView:
+ virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
+ virtual RenderWidgetHostView* CreateViewForWidget(
+ RenderWidgetHost* render_widget_host) OVERRIDE;
+ virtual gfx::NativeView GetNativeView() const OVERRIDE;
+ virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
+ virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
+ virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE;
+ virtual void SetPageTitle(const string16& title) OVERRIDE;
+ virtual void OnTabCrashed(base::TerminationStatus status,
+ int error_code) OVERRIDE;
+ virtual void SizeContents(const gfx::Size& size) OVERRIDE;
+ virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
+ virtual void Focus() OVERRIDE;
+ virtual void SetInitialFocus() OVERRIDE;
+ virtual void StoreFocus() OVERRIDE;
+ virtual void RestoreFocus() OVERRIDE;
+ virtual bool IsDoingDrag() const OVERRIDE;
+ virtual void CancelDragAndCloseTab() OVERRIDE;
+ virtual bool IsEventTracking() const OVERRIDE;
+ virtual void CloseTabAfterEventTracking() OVERRIDE;
+ virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE;
+ virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE;
+ virtual void RemoveOverlayView() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestWebContentsView);
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_