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

Side by Side Diff: content/browser/renderer_host/render_widget_host.cc

Issue 7973003: Making TOOLKIT_USES_GTK orthogonal to USE_AURA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 3 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 "content/browser/renderer_host/render_widget_host.h" 5 #include "content/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 OnAllocateFakePluginWindowHandle) 197 OnAllocateFakePluginWindowHandle)
198 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyFakePluginWindowHandle, 198 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyFakePluginWindowHandle,
199 OnDestroyFakePluginWindowHandle) 199 OnDestroyFakePluginWindowHandle)
200 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceSetIOSurface, 200 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceSetIOSurface,
201 OnAcceleratedSurfaceSetIOSurface) 201 OnAcceleratedSurfaceSetIOSurface)
202 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceSetTransportDIB, 202 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceSetTransportDIB,
203 OnAcceleratedSurfaceSetTransportDIB) 203 OnAcceleratedSurfaceSetTransportDIB)
204 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, 204 IPC_MESSAGE_HANDLER(ViewHostMsg_AcceleratedSurfaceBuffersSwapped,
205 OnAcceleratedSurfaceBuffersSwapped) 205 OnAcceleratedSurfaceBuffersSwapped)
206 #endif 206 #endif
207 #if defined(TOOLKIT_USES_GTK) && !defined(USE_AURA) 207 #if defined(TOOLKIT_USES_GTK)
208 IPC_MESSAGE_HANDLER(ViewHostMsg_CreatePluginContainer, 208 IPC_MESSAGE_HANDLER(ViewHostMsg_CreatePluginContainer,
209 OnMsgCreatePluginContainer) 209 OnMsgCreatePluginContainer)
210 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer, 210 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer,
211 OnMsgDestroyPluginContainer) 211 OnMsgDestroyPluginContainer)
212 #endif 212 #endif
213 IPC_MESSAGE_UNHANDLED(handled = false) 213 IPC_MESSAGE_UNHANDLED(handled = false)
214 IPC_END_MESSAGE_MAP_EX() 214 IPC_END_MESSAGE_MAP_EX()
215 215
216 if (!msg_is_ok) { 216 if (!msg_is_ok) {
217 // The message de-serialization failed. Kill the renderer process. 217 // The message de-serialization failed. Kill the renderer process.
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 #if defined(OS_MACOSX) 1098 #if defined(OS_MACOSX)
1099 bool old_state = is_accelerated_compositing_active_; 1099 bool old_state = is_accelerated_compositing_active_;
1100 #endif 1100 #endif
1101 is_accelerated_compositing_active_ = activated; 1101 is_accelerated_compositing_active_ = activated;
1102 #if defined(OS_MACOSX) 1102 #if defined(OS_MACOSX)
1103 if (old_state != is_accelerated_compositing_active_ && view_) 1103 if (old_state != is_accelerated_compositing_active_ && view_)
1104 view_->GpuRenderingStateDidChange(); 1104 view_->GpuRenderingStateDidChange();
1105 #elif defined(OS_WIN) 1105 #elif defined(OS_WIN)
1106 if (view_) 1106 if (view_)
1107 view_->ShowCompositorHostWindow(is_accelerated_compositing_active_); 1107 view_->ShowCompositorHostWindow(is_accelerated_compositing_active_);
1108 #elif defined(TOOLKIT_USES_GTK) && !defined(USE_AURA) 1108 #elif defined(TOOLKIT_USES_GTK)
1109 if (view_) 1109 if (view_)
1110 view_->AcceleratedCompositingActivated(activated); 1110 view_->AcceleratedCompositingActivated(activated);
1111 #endif 1111 #endif
1112 } 1112 }
1113 1113
1114 #if defined(OS_POSIX) 1114 #if defined(OS_POSIX)
1115 void RenderWidgetHost::OnMsgGetScreenInfo(gfx::NativeViewId window_id, 1115 void RenderWidgetHost::OnMsgGetScreenInfo(gfx::NativeViewId window_id,
1116 WebKit::WebScreenInfo* results) { 1116 WebKit::WebScreenInfo* results) {
1117 if (view_) 1117 if (view_)
1118 view_->GetScreenInfo(results); 1118 view_->GetScreenInfo(results);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 } 1278 }
1279 1279
1280 void RenderWidgetHost::DisableScrollbarsForThreshold(const gfx::Size& size) { 1280 void RenderWidgetHost::DisableScrollbarsForThreshold(const gfx::Size& size) {
1281 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size)); 1281 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size));
1282 } 1282 }
1283 1283
1284 void RenderWidgetHost::EnablePreferredSizeMode(int flags) { 1284 void RenderWidgetHost::EnablePreferredSizeMode(int flags) {
1285 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags)); 1285 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags));
1286 } 1286 }
1287 1287
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698