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

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

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address alexmos@ comments Created 4 years, 8 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 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void EnablePreferredSizeMode() { 359 void EnablePreferredSizeMode() {
360 view()->OnEnablePreferredSizeChangedMode(); 360 view()->OnEnablePreferredSizeChangedMode();
361 } 361 }
362 362
363 const gfx::Size& GetPreferredSize() { 363 const gfx::Size& GetPreferredSize() {
364 view()->CheckPreferredSize(); 364 view()->CheckPreferredSize();
365 return view()->preferred_size_; 365 return view()->preferred_size_;
366 } 366 }
367 367
368 void SetZoomLevel(double level) { 368 void SetZoomLevel(double level) {
369 view()->OnSetZoomLevelForView(false, level); 369 view()->OnSetZoomLevelForView(
370 PageMsg_SetZoomLevel_Command::ZOOM_USE_CURRENT_TEMPORARY_MODE, level);
370 } 371 }
371 372
372 private: 373 private:
373 scoped_ptr<MockKeyboard> mock_keyboard_; 374 scoped_ptr<MockKeyboard> mock_keyboard_;
374 }; 375 };
375 376
376 class DevToolsAgentTest : public RenderViewImplTest { 377 class DevToolsAgentTest : public RenderViewImplTest {
377 public: 378 public:
378 void Attach() { 379 void Attach() {
379 std::string host_id = "host_id"; 380 std::string host_id = "host_id";
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 FROM_HERE, 2349 FROM_HERE,
2349 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this))); 2350 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this)));
2350 ExecuteJavaScriptForTests("debugger;"); 2351 ExecuteJavaScriptForTests("debugger;");
2351 2352
2352 // CloseWhilePaused should resume execution and continue here. 2353 // CloseWhilePaused should resume execution and continue here.
2353 EXPECT_FALSE(IsPaused()); 2354 EXPECT_FALSE(IsPaused());
2354 Detach(); 2355 Detach();
2355 } 2356 }
2356 2357
2357 } // namespace content 2358 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698