| OLD | NEW |
| 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 "content/browser/web_contents/web_contents_view_gtk.h" | 5 #include "content/browser/web_contents/web_contents_view_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 SetInitialFocus(); | 232 SetInitialFocus(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 bool WebContentsViewGtk::IsDoingDrag() const { | 235 bool WebContentsViewGtk::IsDoingDrag() const { |
| 236 return false; | 236 return false; |
| 237 } | 237 } |
| 238 | 238 |
| 239 void WebContentsViewGtk::CancelDragAndCloseTab() { | 239 void WebContentsViewGtk::CancelDragAndCloseTab() { |
| 240 } | 240 } |
| 241 | 241 |
| 242 WebDropData* WebContentsViewGtk::GetDropData() const { | |
| 243 return drag_dest_->current_drop_data(); | |
| 244 } | |
| 245 | |
| 246 bool WebContentsViewGtk::IsEventTracking() const { | 242 bool WebContentsViewGtk::IsEventTracking() const { |
| 247 return false; | 243 return false; |
| 248 } | 244 } |
| 249 | 245 |
| 250 void WebContentsViewGtk::CloseTabAfterEventTracking() { | 246 void WebContentsViewGtk::CloseTabAfterEventTracking() { |
| 251 } | 247 } |
| 252 | 248 |
| 253 void WebContentsViewGtk::GetViewBounds(gfx::Rect* out) const { | 249 void WebContentsViewGtk::GetViewBounds(gfx::Rect* out) const { |
| 254 GdkWindow* window = gtk_widget_get_window(GetNativeView()); | 250 GdkWindow* window = gtk_widget_get_window(GetNativeView()); |
| 255 if (!window) { | 251 if (!window) { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // We manually tell our RWHV to resize the renderer content. This avoids | 421 // We manually tell our RWHV to resize the renderer content. This avoids |
| 426 // spurious resizes from GTK+. | 422 // spurious resizes from GTK+. |
| 427 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); | 423 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); |
| 428 if (rwhv) | 424 if (rwhv) |
| 429 rwhv->SetSize(size); | 425 rwhv->SetSize(size); |
| 430 if (web_contents_->GetInterstitialPage()) | 426 if (web_contents_->GetInterstitialPage()) |
| 431 web_contents_->GetInterstitialPage()->SetSize(size); | 427 web_contents_->GetInterstitialPage()->SetSize(size); |
| 432 } | 428 } |
| 433 | 429 |
| 434 } // namespace content | 430 } // namespace content |
| OLD | NEW |