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

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

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 #include "content/test/test_web_contents_view.h" 5 #include "content/test/test_web_contents_view.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 TestWebContentsView::TestWebContentsView() { 9 TestWebContentsView::TestWebContentsView() {
10 } 10 }
11 11
12 TestWebContentsView::~TestWebContentsView() { 12 TestWebContentsView::~TestWebContentsView() {
13 } 13 }
14 14
15 void TestWebContentsView::ShowContextMenu( 15 void TestWebContentsView::ShowContextMenu(
16 const ContextMenuParams& params) { 16 const ContextMenuParams& params,
17 const content::ContextMenuSourceType& type) {
17 } 18 }
18 19
19 void TestWebContentsView::ShowPopupMenu(const gfx::Rect& bounds, 20 void TestWebContentsView::ShowPopupMenu(const gfx::Rect& bounds,
20 int item_height, 21 int item_height,
21 double item_font_size, 22 double item_font_size,
22 int selected_item, 23 int selected_item,
23 const std::vector<WebMenuItem>& items, 24 const std::vector<WebMenuItem>& items,
24 bool right_aligned, 25 bool right_aligned,
25 bool allow_multiple_selection) { 26 bool allow_multiple_selection) {
26 } 27 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 106 }
106 107
107 void TestWebContentsView::CloseTabAfterEventTracking() { 108 void TestWebContentsView::CloseTabAfterEventTracking() {
108 } 109 }
109 110
110 gfx::Rect TestWebContentsView::GetViewBounds() const { 111 gfx::Rect TestWebContentsView::GetViewBounds() const {
111 return gfx::Rect(); 112 return gfx::Rect();
112 } 113 }
113 114
114 } // namespace content 115 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698