OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/tab_contents/tab_contents_view_gtk.h" | 5 #include "chrome/browser/ui/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/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/download/download_shelf.h" | 13 #include "chrome/browser/download/download_shelf.h" |
14 #include "chrome/browser/renderer_host/render_view_host.h" | 14 #include "chrome/browser/renderer_host/render_view_host.h" |
15 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 15 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
16 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 16 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
17 #include "chrome/browser/tab_contents/interstitial_page.h" | 17 #include "chrome/browser/tab_contents/interstitial_page.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
20 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h" | 20 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h" |
21 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 21 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
22 #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" | 22 #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" |
23 #include "chrome/browser/ui/views/sad_tab_view.h" | 23 #include "chrome/browser/ui/views/sad_tab_view.h" |
24 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" | 24 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" |
25 #include "gfx/canvas_skia_paint.h" | 25 #include "ui/gfx/canvas_skia_paint.h" |
26 #include "gfx/point.h" | 26 #include "ui/gfx/point.h" |
27 #include "gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
28 #include "gfx/size.h" | 28 #include "ui/gfx/size.h" |
29 #include "views/controls/native/native_view_host.h" | 29 #include "views/controls/native/native_view_host.h" |
30 #include "views/focus/view_storage.h" | 30 #include "views/focus/view_storage.h" |
31 #include "views/screen.h" | 31 #include "views/screen.h" |
32 #include "views/widget/root_view.h" | 32 #include "views/widget/root_view.h" |
33 | 33 |
34 using WebKit::WebDragOperation; | 34 using WebKit::WebDragOperation; |
35 using WebKit::WebDragOperationsMask; | 35 using WebKit::WebDragOperationsMask; |
36 using WebKit::WebInputEvent; | 36 using WebKit::WebInputEvent; |
37 | 37 |
38 | 38 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // not NULL, else our delegate. | 472 // not NULL, else our delegate. |
473 gboolean TabContentsViewGtk::OnMouseMove(GtkWidget* widget, | 473 gboolean TabContentsViewGtk::OnMouseMove(GtkWidget* widget, |
474 GdkEventMotion* event) { | 474 GdkEventMotion* event) { |
475 if (sad_tab_ != NULL) | 475 if (sad_tab_ != NULL) |
476 WidgetGtk::OnMotionNotify(widget, event); | 476 WidgetGtk::OnMotionNotify(widget, event); |
477 else if (tab_contents()->delegate()) | 477 else if (tab_contents()->delegate()) |
478 tab_contents()->delegate()->ContentsMouseEvent( | 478 tab_contents()->delegate()->ContentsMouseEvent( |
479 tab_contents(), views::Screen::GetCursorScreenPoint(), true); | 479 tab_contents(), views::Screen::GetCursorScreenPoint(), true); |
480 return FALSE; | 480 return FALSE; |
481 } | 481 } |
OLD | NEW |