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

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

Issue 12220101: Minimal Chrome Frame with Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert install_worker.cc to un-break win64 build Created 7 years, 9 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) 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 <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 IPC_MESSAGE_HANDLER(AutomationMsg_ReloadAsync, ReloadAsync) 421 IPC_MESSAGE_HANDLER(AutomationMsg_ReloadAsync, ReloadAsync)
422 IPC_MESSAGE_HANDLER(AutomationMsg_StopAsync, StopAsync) 422 IPC_MESSAGE_HANDLER(AutomationMsg_StopAsync, StopAsync)
423 IPC_MESSAGE_HANDLER(AutomationMsg_SetPageFontSize, OnSetPageFontSize) 423 IPC_MESSAGE_HANDLER(AutomationMsg_SetPageFontSize, OnSetPageFontSize)
424 IPC_MESSAGE_HANDLER(AutomationMsg_SaveAsAsync, SaveAsAsync) 424 IPC_MESSAGE_HANDLER(AutomationMsg_SaveAsAsync, SaveAsAsync)
425 IPC_MESSAGE_HANDLER(AutomationMsg_RemoveBrowsingData, RemoveBrowsingData) 425 IPC_MESSAGE_HANDLER(AutomationMsg_RemoveBrowsingData, RemoveBrowsingData)
426 IPC_MESSAGE_HANDLER(AutomationMsg_JavaScriptStressTestControl, 426 IPC_MESSAGE_HANDLER(AutomationMsg_JavaScriptStressTestControl,
427 JavaScriptStressTestControl) 427 JavaScriptStressTestControl)
428 IPC_MESSAGE_HANDLER(AutomationMsg_BeginTracing, BeginTracing) 428 IPC_MESSAGE_HANDLER(AutomationMsg_BeginTracing, BeginTracing)
429 IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_EndTracing, EndTracing) 429 IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_EndTracing, EndTracing)
430 IPC_MESSAGE_HANDLER(AutomationMsg_GetTracingOutput, GetTracingOutput) 430 IPC_MESSAGE_HANDLER(AutomationMsg_GetTracingOutput, GetTracingOutput)
431 #if defined(OS_WIN) && !defined(USE_AURA) 431 #if defined(OS_WIN)
432 // These are for use with external tabs. 432 // These are for use with external tabs.
433 IPC_MESSAGE_HANDLER(AutomationMsg_CreateExternalTab, CreateExternalTab) 433 IPC_MESSAGE_HANDLER(AutomationMsg_CreateExternalTab, CreateExternalTab)
434 IPC_MESSAGE_HANDLER(AutomationMsg_ProcessUnhandledAccelerator, 434 IPC_MESSAGE_HANDLER(AutomationMsg_ProcessUnhandledAccelerator,
435 ProcessUnhandledAccelerator) 435 ProcessUnhandledAccelerator)
436 IPC_MESSAGE_HANDLER(AutomationMsg_SetInitialFocus, SetInitialFocus) 436 IPC_MESSAGE_HANDLER(AutomationMsg_SetInitialFocus, SetInitialFocus)
437 IPC_MESSAGE_HANDLER(AutomationMsg_TabReposition, OnTabReposition) 437 IPC_MESSAGE_HANDLER(AutomationMsg_TabReposition, OnTabReposition)
438 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardContextMenuCommandToChrome, 438 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardContextMenuCommandToChrome,
439 OnForwardContextMenuCommandToChrome) 439 OnForwardContextMenuCommandToChrome)
440 IPC_MESSAGE_HANDLER(AutomationMsg_NavigateInExternalTab, 440 IPC_MESSAGE_HANDLER(AutomationMsg_NavigateInExternalTab,
441 NavigateInExternalTab) 441 NavigateInExternalTab)
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 825
826 return NULL; 826 return NULL;
827 } 827 }
828 828
829 void AutomationProvider::SaveAsAsync(int tab_handle) { 829 void AutomationProvider::SaveAsAsync(int tab_handle) {
830 NavigationController* tab = NULL; 830 NavigationController* tab = NULL;
831 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); 831 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab);
832 if (web_contents) 832 if (web_contents)
833 web_contents->OnSavePage(); 833 web_contents->OnSavePage();
834 } 834 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.h ('k') | chrome/browser/automation/automation_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698