From 21fa3a157739a857f1882072179f1bd3d978c368 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Wed, 8 Dec 2010 23:34:16 +0000 Subject: ipc: Simplify the magic required to create IPC message headers.This gets rid of having to include the files in a magic place because of xcode dependency issues, and just makes it simpler to create new IPC message classes. It also gets rid of including the X_messages_internal.h file multiple times, which simplifies things and should make the build a little faster. In a future change, I will remove the "internal.h" files since they're no longer needed. Review URL: http://codereview.chromium.org/5526008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68664 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/automation/automation_provider.cc | 3 --- chrome/browser/automation/automation_provider.h | 5 ----- chrome/browser/automation/automation_provider_win.cc | 9 --------- 3 files changed, 17 deletions(-) (limited to 'chrome/browser/automation') diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 7464ec1..50f5306 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -366,9 +366,6 @@ void AutomationProvider::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_WindowDrag, WindowSimulateDrag) #endif // !defined(OS_MACOSX) -#if defined(OS_WIN) - IPC_MESSAGE_HANDLER(AutomationMsg_TabHWND, GetTabHWND) -#endif // defined(OS_WIN) IPC_MESSAGE_HANDLER(AutomationMsg_HandleUnused, HandleUnused) IPC_MESSAGE_HANDLER(AutomationMsg_SetProxyConfig, SetProxyConfig); IPC_MESSAGE_HANDLER(AutomationMsg_PrintAsync, PrintAsync) diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index c30fb97..797d8b08 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -238,11 +238,6 @@ class AutomationProvider : public base::RefCounted, int flags, bool press_escape_en_route, IPC::Message* reply_message); - -#if defined(OS_WIN) - // TODO(port): Replace HWND. - void GetTabHWND(int handle, HWND* tab_hwnd); -#endif // defined(OS_WIN) void HandleUnused(const IPC::Message& message, int handle); void SetFilteredInet(const IPC::Message& message, bool enabled); void GetFilteredInetHitCount(int* hit_count); diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc index a2640d7..7ff2bff 100644 --- a/chrome/browser/automation/automation_provider_win.cc +++ b/chrome/browser/automation/automation_provider_win.cc @@ -229,15 +229,6 @@ void AutomationProvider::WindowSimulateDrag(int handle, } } -void AutomationProvider::GetTabHWND(int handle, HWND* tab_hwnd) { - *tab_hwnd = NULL; - - if (tab_tracker_->ContainsHandle(handle)) { - NavigationController* tab = tab_tracker_->GetResource(handle); - *tab_hwnd = tab->tab_contents()->GetNativeView(); - } -} - void AutomationProvider::CreateExternalTab( const IPC::ExternalTabSettings& settings, gfx::NativeWindow* tab_container_window, gfx::NativeWindow* tab_window, -- cgit v1.1