| 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 |
| 242 bool WebContentsViewGtk::IsEventTracking() const { | 246 bool WebContentsViewGtk::IsEventTracking() const { |
| 243 return false; | 247 return false; |
| 244 } | 248 } |
| 245 | 249 |
| 246 void WebContentsViewGtk::CloseTabAfterEventTracking() { | 250 void WebContentsViewGtk::CloseTabAfterEventTracking() { |
| 247 } | 251 } |
| 248 | 252 |
| 249 void WebContentsViewGtk::GetViewBounds(gfx::Rect* out) const { | 253 void WebContentsViewGtk::GetViewBounds(gfx::Rect* out) const { |
| 250 GdkWindow* window = gtk_widget_get_window(GetNativeView()); | 254 GdkWindow* window = gtk_widget_get_window(GetNativeView()); |
| 251 if (!window) { | 255 if (!window) { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // We manually tell our RWHV to resize the renderer content. This avoids | 425 // We manually tell our RWHV to resize the renderer content. This avoids |
| 422 // spurious resizes from GTK+. | 426 // spurious resizes from GTK+. |
| 423 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); | 427 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); |
| 424 if (rwhv) | 428 if (rwhv) |
| 425 rwhv->SetSize(size); | 429 rwhv->SetSize(size); |
| 426 if (web_contents_->GetInterstitialPage()) | 430 if (web_contents_->GetInterstitialPage()) |
| 427 web_contents_->GetInterstitialPage()->SetSize(size); | 431 web_contents_->GetInterstitialPage()->SetSize(size); |
| 428 } | 432 } |
| 429 | 433 |
| 430 } // namespace content | 434 } // namespace content |
| OLD | NEW |