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

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

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/automation/automation_browser_tracker.h" 10 #include "chrome/browser/automation/automation_browser_tracker.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 void AutomationProvider::OnMessageFromExternalHost(int handle, 419 void AutomationProvider::OnMessageFromExternalHost(int handle,
420 const std::string& message, 420 const std::string& message,
421 const std::string& origin, 421 const std::string& origin,
422 const std::string& target) { 422 const std::string& target) {
423 RenderViewHost* view_host = GetViewForTab(handle); 423 RenderViewHost* view_host = GetViewForTab(handle);
424 if (!view_host) 424 if (!view_host)
425 return; 425 return;
426 426
427 view_host->Send(new ViewMsg_HandleMessageFromExternalHost( 427 view_host->Send(new ChromeViewMsg_HandleMessageFromExternalHost(
428 view_host->routing_id(), message, origin, target)); 428 view_host->routing_id(), message, origin, target));
429 } 429 }
430 430
431 void AutomationProvider::NavigateInExternalTab( 431 void AutomationProvider::NavigateInExternalTab(
432 int handle, const GURL& url, const GURL& referrer, 432 int handle, const GURL& url, const GURL& referrer,
433 AutomationMsg_NavigationResponseValues* status) { 433 AutomationMsg_NavigationResponseValues* status) {
434 *status = AUTOMATION_MSG_NAVIGATION_ERROR; 434 *status = AUTOMATION_MSG_NAVIGATION_ERROR;
435 435
436 if (tab_tracker_->ContainsHandle(handle)) { 436 if (tab_tracker_->ContainsHandle(handle)) {
437 NavigationController* tab = tab_tracker_->GetResource(handle); 437 NavigationController* tab = tab_tracker_->GetResource(handle);
(...skipping 25 matching lines...) Expand all
463 void AutomationProvider::OnSetZoomLevel(int handle, int zoom_level) { 463 void AutomationProvider::OnSetZoomLevel(int handle, int zoom_level) {
464 if (tab_tracker_->ContainsHandle(handle)) { 464 if (tab_tracker_->ContainsHandle(handle)) {
465 NavigationController* tab = tab_tracker_->GetResource(handle); 465 NavigationController* tab = tab_tracker_->GetResource(handle);
466 if (tab->tab_contents() && tab->tab_contents()->render_view_host()) { 466 if (tab->tab_contents() && tab->tab_contents()->render_view_host()) {
467 RenderViewHost* host = tab->tab_contents()->render_view_host(); 467 RenderViewHost* host = tab->tab_contents()->render_view_host();
468 PageZoom::Function zoom = static_cast<PageZoom::Function>(zoom_level); 468 PageZoom::Function zoom = static_cast<PageZoom::Function>(zoom_level);
469 host->Send(new ViewMsg_Zoom(host->routing_id(), zoom)); 469 host->Send(new ViewMsg_Zoom(host->routing_id(), zoom));
470 } 470 }
471 } 471 }
472 } 472 }
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