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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 5105006: Resize synchronization for Linux. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make -j17 all is my friend (fix the test build). Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer_host/render_widget_host_view_gtk.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 // If this gets included after the gtk headers, then a bunch of compiler 7 // If this gets included after the gtk headers, then a bunch of compiler
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts
9 // badly with URLRequestStatus::Status. 9 // badly with URLRequestStatus::Status.
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 } 1039 }
1040 1040
1041 bool RenderWidgetHostViewGtk::ContainsNativeView( 1041 bool RenderWidgetHostViewGtk::ContainsNativeView(
1042 gfx::NativeView native_view) const { 1042 gfx::NativeView native_view) const {
1043 // TODO(port) 1043 // TODO(port)
1044 NOTREACHED() << 1044 NOTREACHED() <<
1045 "RenderWidgetHostViewGtk::ContainsNativeView not implemented."; 1045 "RenderWidgetHostViewGtk::ContainsNativeView not implemented.";
1046 return false; 1046 return false;
1047 } 1047 }
1048 1048
1049 void RenderWidgetHostViewGtk::AcceleratedCompositingActivated(bool activated) {
1050 GtkPreserveWindow* widget =
1051 reinterpret_cast<GtkPreserveWindow*>(view_.get());
1052
1053 gtk_preserve_window_delegate_resize(widget, activated);
1054 }
1055
1049 void RenderWidgetHostViewGtk::ForwardKeyboardEvent( 1056 void RenderWidgetHostViewGtk::ForwardKeyboardEvent(
1050 const NativeWebKeyboardEvent& event) { 1057 const NativeWebKeyboardEvent& event) {
1051 if (!host_) 1058 if (!host_)
1052 return; 1059 return;
1053 1060
1054 EditCommands edit_commands; 1061 EditCommands edit_commands;
1055 if (!event.skip_in_browser && 1062 if (!event.skip_in_browser &&
1056 key_bindings_handler_->Match(event, &edit_commands)) { 1063 key_bindings_handler_->Match(event, &edit_commands)) {
1057 host_->ForwardEditCommandsForNextKeyEvent(edit_commands); 1064 host_->ForwardEditCommandsForNextKeyEvent(edit_commands);
1058 } 1065 }
1059 host_->ForwardKeyboardEvent(event); 1066 host_->ForwardKeyboardEvent(event);
1060 } 1067 }
1061 1068
1062 // static 1069 // static
1063 RenderWidgetHostView* 1070 RenderWidgetHostView*
1064 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1071 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1065 gfx::NativeView widget) { 1072 gfx::NativeView widget) {
1066 gpointer user_data = g_object_get_data(G_OBJECT(widget), 1073 gpointer user_data = g_object_get_data(G_OBJECT(widget),
1067 kRenderWidgetHostViewKey); 1074 kRenderWidgetHostViewKey);
1068 return reinterpret_cast<RenderWidgetHostView*>(user_data); 1075 return reinterpret_cast<RenderWidgetHostView*>(user_data);
1069 } 1076 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_gtk.h ('k') | chrome/browser/renderer_host/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698