OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
9 #include <cairo/cairo.h> | 9 #include <cairo/cairo.h> |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 void RenderWidgetHostViewGtk::DidBecomeSelected() { | 190 void RenderWidgetHostViewGtk::DidBecomeSelected() { |
191 NOTIMPLEMENTED(); | 191 NOTIMPLEMENTED(); |
192 } | 192 } |
193 | 193 |
194 void RenderWidgetHostViewGtk::WasHidden() { | 194 void RenderWidgetHostViewGtk::WasHidden() { |
195 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
196 } | 196 } |
197 | 197 |
198 void RenderWidgetHostViewGtk::SetSize(const gfx::Size& size) { | 198 void RenderWidgetHostViewGtk::SetSize(const gfx::Size& size) { |
199 NOTIMPLEMENTED(); | 199 // We rely on our parent GTK container to size us. |
200 } | 200 } |
201 | 201 |
202 gfx::NativeView RenderWidgetHostViewGtk::GetPluginNativeView() { | 202 gfx::NativeView RenderWidgetHostViewGtk::GetPluginNativeView() { |
203 // TODO(port): We need to pass some widget pointer out here because the | 203 // TODO(port): We need to pass some widget pointer out here because the |
204 // renderer echos it back to us when it asks for GetScreenInfo. However, we | 204 // renderer echos it back to us when it asks for GetScreenInfo. However, we |
205 // should probably be passing the top-level window or some such instead. | 205 // should probably be passing the top-level window or some such instead. |
206 return view_.get(); | 206 return view_.get(); |
207 } | 207 } |
208 | 208 |
209 void RenderWidgetHostViewGtk::MovePluginWindows( | 209 void RenderWidgetHostViewGtk::MovePluginWindows( |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 // Destroy()ed yet and it receives paint messages... | 342 // Destroy()ed yet and it receives paint messages... |
343 GdkWindow* window = view_.get()->window; | 343 GdkWindow* window = view_.get()->window; |
344 if (window) { | 344 if (window) { |
345 backing_store->ShowRect( | 345 backing_store->ShowRect( |
346 damage_rect, x11_util::GetX11WindowFromGtkWidget(view_.get())); | 346 damage_rect, x11_util::GetX11WindowFromGtkWidget(view_.get())); |
347 } | 347 } |
348 } else { | 348 } else { |
349 NOTIMPLEMENTED(); | 349 NOTIMPLEMENTED(); |
350 } | 350 } |
351 } | 351 } |
OLD | NEW |