| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/tab_contents/tab_contents_view_gtk.h" | 5 #include "chrome/browser/views/tab_contents/tab_contents_view_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/gfx/point.h" | 11 #include "base/gfx/point.h" |
| 12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
| 13 #include "base/gfx/size.h" | 13 #include "base/gfx/size.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/blocked_popup_container.h" | 15 #include "chrome/browser/blocked_popup_container.h" |
| 16 #include "chrome/browser/download/download_shelf.h" | 16 #include "chrome/browser/download/download_shelf.h" |
| 17 #include "chrome/browser/gtk/tab_contents_drag_source.h" | 17 #include "chrome/browser/gtk/tab_contents_drag_source.h" |
| 18 #include "chrome/browser/renderer_host/render_view_host.h" | 18 #include "chrome/browser/renderer_host/render_view_host.h" |
| 19 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 19 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
| 20 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 20 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
| 21 #include "chrome/browser/tab_contents/interstitial_page.h" | 21 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
| 23 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 23 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 24 #include "chrome/browser/views/sad_tab_view.h" | 24 #include "chrome/browser/views/sad_tab_view.h" |
| 25 #include "chrome/browser/views/tab_contents/render_view_context_menu_win.h" | 25 #include "chrome/browser/views/tab_contents/render_view_context_menu_win.h" |
| 26 #include "views/controls/native/native_view_host.h" | 26 #include "views/controls/native/native_view_host.h" |
| 27 #include "views/widget/root_view.h" | 27 #include "views/widget/root_view.h" |
| 28 | 28 |
| 29 using WebKit::WebDragOperation; |
| 30 using WebKit::WebDragOperationsMask; |
| 29 using WebKit::WebInputEvent; | 31 using WebKit::WebInputEvent; |
| 30 | 32 |
| 31 | 33 |
| 32 namespace { | 34 namespace { |
| 33 | 35 |
| 34 // Called when the content view gtk widget is tabbed to, or after the call to | 36 // Called when the content view gtk widget is tabbed to, or after the call to |
| 35 // gtk_widget_child_focus() in TakeFocus(). We return true | 37 // gtk_widget_child_focus() in TakeFocus(). We return true |
| 36 // and grab focus if we don't have it. The call to | 38 // and grab focus if we don't have it. The call to |
| 37 // FocusThroughTabTraversal(bool) forwards the "move focus forward" effect to | 39 // FocusThroughTabTraversal(bool) forwards the "move focus forward" effect to |
| 38 // webkit. | 40 // webkit. |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 339 |
| 338 private: | 340 private: |
| 339 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainerViewGtk); | 341 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainerViewGtk); |
| 340 }; | 342 }; |
| 341 | 343 |
| 342 // static | 344 // static |
| 343 BlockedPopupContainerView* BlockedPopupContainerView::Create( | 345 BlockedPopupContainerView* BlockedPopupContainerView::Create( |
| 344 BlockedPopupContainer* container) { | 346 BlockedPopupContainer* container) { |
| 345 return new BlockedPopupContainerViewGtk; | 347 return new BlockedPopupContainerViewGtk; |
| 346 } | 348 } |
| OLD | NEW |