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

Side by Side Diff: headless/public/headless_browser.cc

Issue 2642143002: [headless] Make --hide-scrollbars affect all BrowserContexts. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "headless/public/headless_browser.h" 5 #include "headless/public/headless_browser.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/public/common/user_agent.h" 9 #include "content/public/common/user_agent.h"
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Builder& Builder::SetWindowSize(const gfx::Size& window_size) { 95 Builder& Builder::SetWindowSize(const gfx::Size& window_size) {
96 options_.window_size = window_size; 96 options_.window_size = window_size;
97 return *this; 97 return *this;
98 } 98 }
99 99
100 Builder& Builder::SetIncognitoMode(bool incognito_mode) { 100 Builder& Builder::SetIncognitoMode(bool incognito_mode) {
101 options_.incognito_mode = incognito_mode; 101 options_.incognito_mode = incognito_mode;
102 return *this; 102 return *this;
103 } 103 }
104 104
105 Builder& Builder::SetOverrideWebPreferencesCallback(
106 base::Callback<void(WebPreferences*)> callback) {
107 options_.override_web_preferences_callback = callback;
108 return *this;
109 }
110
105 Options Builder::Build() { 111 Options Builder::Build() {
106 return std::move(options_); 112 return std::move(options_);
107 } 113 }
108 114
109 } // namespace headless 115 } // namespace headless
OLDNEW
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698