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

Side by Side Diff: content/renderer/render_view_browsertest.cc

Issue 2245063006: Revert of Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix patch apply Created 4 years, 4 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
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <tuple> 7 #include <tuple>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 EXPECT_EQ(1, view()->history_list_offset_); 1459 EXPECT_EQ(1, view()->history_list_offset_);
1460 } 1460 }
1461 1461
1462 TEST_F(RenderViewImplTest, ContextMenu) { 1462 TEST_F(RenderViewImplTest, ContextMenu) {
1463 LoadHTML("<div>Page A</div>"); 1463 LoadHTML("<div>Page A</div>");
1464 1464
1465 // Create a right click in the center of the iframe. (I'm hoping this will 1465 // Create a right click in the center of the iframe. (I'm hoping this will
1466 // make this a bit more robust in case of some other formatting or other bug.) 1466 // make this a bit more robust in case of some other formatting or other bug.)
1467 WebMouseEvent mouse_event; 1467 WebMouseEvent mouse_event;
1468 mouse_event.type = WebInputEvent::MouseDown; 1468 mouse_event.type = WebInputEvent::MouseDown;
1469 mouse_event.button = WebMouseEvent::Button::Right; 1469 mouse_event.button = WebMouseEvent::ButtonRight;
1470 mouse_event.x = 250; 1470 mouse_event.x = 250;
1471 mouse_event.y = 250; 1471 mouse_event.y = 250;
1472 mouse_event.globalX = 250; 1472 mouse_event.globalX = 250;
1473 mouse_event.globalY = 250; 1473 mouse_event.globalY = 250;
1474 1474
1475 SendWebMouseEvent(mouse_event); 1475 SendWebMouseEvent(mouse_event);
1476 1476
1477 // Now simulate the corresponding up event which should display the menu 1477 // Now simulate the corresponding up event which should display the menu
1478 mouse_event.type = WebInputEvent::MouseUp; 1478 mouse_event.type = WebInputEvent::MouseUp;
1479 SendWebMouseEvent(mouse_event); 1479 SendWebMouseEvent(mouse_event);
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 ExpectPauseAndResume(3); 2480 ExpectPauseAndResume(3);
2481 blink::WebScriptSource source2( 2481 blink::WebScriptSource source2(
2482 WebString::fromUTF8("function func2() { func1(); }; func2();")); 2482 WebString::fromUTF8("function func2() { func1(); }; func2();"));
2483 frame()->GetWebFrame()->executeScriptInIsolatedWorld(17, &source2, 1, 1); 2483 frame()->GetWebFrame()->executeScriptInIsolatedWorld(17, &source2, 1, 1);
2484 2484
2485 EXPECT_FALSE(IsPaused()); 2485 EXPECT_FALSE(IsPaused());
2486 Detach(); 2486 Detach();
2487 } 2487 }
2488 2488
2489 } // namespace content 2489 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698