Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/test/test_web_contents_view.h

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_render_view_host_factory.cc ('k') | content/test/test_web_contents_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 11
12 namespace content { 12 namespace content {
13 13
14 class TestWebContentsView : public WebContentsView, 14 class TestWebContentsView : public WebContentsView,
15 public RenderViewHostDelegateView { 15 public RenderViewHostDelegateView {
16 public: 16 public:
17 TestWebContentsView(); 17 TestWebContentsView();
18 virtual ~TestWebContentsView(); 18 virtual ~TestWebContentsView();
19 19
20 // RenderViewHostDelegateView: 20 // RenderViewHostDelegateView:
21 virtual void ShowContextMenu( 21 virtual void ShowContextMenu(
22 const ContextMenuParams& params, 22 const ContextMenuParams& params,
23 content::ContextMenuSourceType type) OVERRIDE; 23 ContextMenuSourceType type) OVERRIDE;
24 virtual void ShowPopupMenu(const gfx::Rect& bounds, 24 virtual void ShowPopupMenu(const gfx::Rect& bounds,
25 int item_height, 25 int item_height,
26 double item_font_size, 26 double item_font_size,
27 int selected_item, 27 int selected_item,
28 const std::vector<WebMenuItem>& items, 28 const std::vector<WebMenuItem>& items,
29 bool right_aligned, 29 bool right_aligned,
30 bool allow_multiple_selection) OVERRIDE; 30 bool allow_multiple_selection) OVERRIDE;
31 virtual void StartDragging(const WebDropData& drop_data, 31 virtual void StartDragging(const WebDropData& drop_data,
32 WebKit::WebDragOperationsMask allowed_ops, 32 WebKit::WebDragOperationsMask allowed_ops,
33 const gfx::ImageSkia& image, 33 const gfx::ImageSkia& image,
(...skipping 24 matching lines...) Expand all
58 virtual void CloseTabAfterEventTracking() OVERRIDE; 58 virtual void CloseTabAfterEventTracking() OVERRIDE;
59 virtual gfx::Rect GetViewBounds() const OVERRIDE; 59 virtual gfx::Rect GetViewBounds() const OVERRIDE;
60 60
61 private: 61 private:
62 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); 62 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView);
63 }; 63 };
64 64
65 } // namespace content 65 } // namespace content
66 66
67 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 67 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « content/test/test_render_view_host_factory.cc ('k') | content/test/test_web_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698