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: chrome/browser/devtools/devtools_window_testing.cc

Issue 2861053003: DevTools: [lighthouse] Implement performance metrics filmstrip (Closed)
Patch Set: Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/devtools/devtools_window_testing.h" 5 #include "chrome/browser/devtools/devtools_window_testing.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/devtools/devtools_window.h" 9 #include "chrome/browser/devtools/devtools_window.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 content::WebContents* DevToolsWindowTesting::main_web_contents() { 74 content::WebContents* DevToolsWindowTesting::main_web_contents() {
75 return devtools_window_->main_web_contents_; 75 return devtools_window_->main_web_contents_;
76 } 76 }
77 77
78 content::WebContents* DevToolsWindowTesting::toolbox_web_contents() { 78 content::WebContents* DevToolsWindowTesting::toolbox_web_contents() {
79 return devtools_window_->toolbox_web_contents_; 79 return devtools_window_->toolbox_web_contents_;
80 } 80 }
81 81
82 void DevToolsWindowTesting::SetInspectedPageBounds(const gfx::Rect& bounds) { 82 void DevToolsWindowTesting::SetInspectedPageBounds(const gfx::Rect& bounds) {
83 devtools_window_->SetInspectedPageBounds(bounds); 83 devtools_window_->SetInspectedPageBounds(bounds, false);
84 } 84 }
85 85
86 void DevToolsWindowTesting::SetCloseCallback(const base::Closure& closure) { 86 void DevToolsWindowTesting::SetCloseCallback(const base::Closure& closure) {
87 close_callback_ = closure; 87 close_callback_ = closure;
88 } 88 }
89 89
90 // static 90 // static
91 void DevToolsWindowTesting::WindowClosed(DevToolsWindow* window) { 91 void DevToolsWindowTesting::WindowClosed(DevToolsWindow* window) {
92 DevToolsWindowTesting* testing = DevToolsWindowTesting::Find(window); 92 DevToolsWindowTesting* testing = DevToolsWindowTesting::Find(window);
93 if (testing) 93 if (testing)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 DevToolsWindow* DevToolsWindowCreationObserver::devtools_window() { 199 DevToolsWindow* DevToolsWindowCreationObserver::devtools_window() {
200 return !devtools_windows_.empty() ? devtools_windows_.back() : nullptr; 200 return !devtools_windows_.empty() ? devtools_windows_.back() : nullptr;
201 } 201 }
202 202
203 void DevToolsWindowCreationObserver::CloseAllSync() { 203 void DevToolsWindowCreationObserver::CloseAllSync() {
204 for (DevToolsWindow* window : devtools_windows_) 204 for (DevToolsWindow* window : devtools_windows_)
205 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 205 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
206 devtools_windows_.clear(); 206 devtools_windows_.clear();
207 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698