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

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

Issue 10917102: Context menus should appear above the touch point if invoked by long press. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 months 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
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(const ContextMenuParams& params) OVERRIDE; 21 virtual void ShowContextMenu(
22 const ContextMenuParams& params,
23 const content::ContextMenuEventType& type) OVERRIDE;
22 virtual void ShowPopupMenu(const gfx::Rect& bounds, 24 virtual void ShowPopupMenu(const gfx::Rect& bounds,
23 int item_height, 25 int item_height,
24 double item_font_size, 26 double item_font_size,
25 int selected_item, 27 int selected_item,
26 const std::vector<WebMenuItem>& items, 28 const std::vector<WebMenuItem>& items,
27 bool right_aligned, 29 bool right_aligned,
28 bool allow_multiple_selection) OVERRIDE; 30 bool allow_multiple_selection) OVERRIDE;
29 virtual void StartDragging(const WebDropData& drop_data, 31 virtual void StartDragging(const WebDropData& drop_data,
30 WebKit::WebDragOperationsMask allowed_ops, 32 WebKit::WebDragOperationsMask allowed_ops,
31 const gfx::ImageSkia& image, 33 const gfx::ImageSkia& image,
(...skipping 26 matching lines...) Expand all
58 virtual void CloseTabAfterEventTracking() OVERRIDE; 60 virtual void CloseTabAfterEventTracking() OVERRIDE;
59 virtual gfx::Rect GetViewBounds() const OVERRIDE; 61 virtual gfx::Rect GetViewBounds() const OVERRIDE;
60 62
61 private: 63 private:
62 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); 64 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView);
63 }; 65 };
64 66
65 } // namespace content 67 } // namespace content
66 68
67 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 69 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698