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

Side by Side Diff: chrome/browser/automation/automation_provider_win.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 "chrome/browser/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 void AutomationProvider::NavigateInExternalTab( 223 void AutomationProvider::NavigateInExternalTab(
224 int handle, const GURL& url, const GURL& referrer, 224 int handle, const GURL& url, const GURL& referrer,
225 AutomationMsg_NavigationResponseValues* status) { 225 AutomationMsg_NavigationResponseValues* status) {
226 *status = AUTOMATION_MSG_NAVIGATION_ERROR; 226 *status = AUTOMATION_MSG_NAVIGATION_ERROR;
227 227
228 if (tab_tracker_->ContainsHandle(handle)) { 228 if (tab_tracker_->ContainsHandle(handle)) {
229 NavigationController* tab = tab_tracker_->GetResource(handle); 229 NavigationController* tab = tab_tracker_->GetResource(handle);
230 tab->LoadURL( 230 tab->LoadURL(
231 url, 231 url,
232 content::Referrer(referrer, WebKit::WebReferrerPolicyDefault), 232 content::Referrer(referrer, blink::WebReferrerPolicyDefault),
233 content::PAGE_TRANSITION_TYPED, std::string()); 233 content::PAGE_TRANSITION_TYPED, std::string());
234 *status = AUTOMATION_MSG_NAVIGATION_SUCCESS; 234 *status = AUTOMATION_MSG_NAVIGATION_SUCCESS;
235 } 235 }
236 } 236 }
237 237
238 void AutomationProvider::NavigateExternalTabAtIndex( 238 void AutomationProvider::NavigateExternalTabAtIndex(
239 int handle, int navigation_index, 239 int handle, int navigation_index,
240 AutomationMsg_NavigationResponseValues* status) { 240 AutomationMsg_NavigationResponseValues* status) {
241 *status = AUTOMATION_MSG_NAVIGATION_ERROR; 241 *status = AUTOMATION_MSG_NAVIGATION_ERROR;
242 242
(...skipping 15 matching lines...) Expand all
258 void AutomationProvider::OnSetZoomLevel(int handle, int zoom_level) { 258 void AutomationProvider::OnSetZoomLevel(int handle, int zoom_level) {
259 if (tab_tracker_->ContainsHandle(handle)) { 259 if (tab_tracker_->ContainsHandle(handle)) {
260 NavigationController* tab = tab_tracker_->GetResource(handle); 260 NavigationController* tab = tab_tracker_->GetResource(handle);
261 if (tab->GetWebContents() && tab->GetWebContents()->GetRenderViewHost()) { 261 if (tab->GetWebContents() && tab->GetWebContents()->GetRenderViewHost()) {
262 RenderViewHost* host = tab->GetWebContents()->GetRenderViewHost(); 262 RenderViewHost* host = tab->GetWebContents()->GetRenderViewHost();
263 content::PageZoom zoom = static_cast<content::PageZoom>(zoom_level); 263 content::PageZoom zoom = static_cast<content::PageZoom>(zoom_level);
264 host->Zoom(zoom); 264 host->Zoom(zoom);
265 } 265 }
266 } 266 }
267 } 267 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698