Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.h" 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h" 8 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h"
9 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 9 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
10 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h" 10 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h"
11 #include "content/browser/renderer_host/render_widget_host_view.h"
12 #include "content/browser/tab_contents/web_drag_dest_gtk.h" 11 #include "content/browser/tab_contents/web_drag_dest_gtk.h"
13 #include "content/browser/tab_contents/web_drag_source_gtk.h" 12 #include "content/browser/tab_contents/web_drag_source_gtk.h"
13 #include "content/public/browser/render_widget_host_view.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/browser/web_contents_view.h" 15 #include "content/public/browser/web_contents_view.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData. h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData. h"
18 18
19 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
20 #include "chrome/browser/chromeos/login/user_manager.h" 20 #include "chrome/browser/chromeos/login/user_manager.h"
21 #endif 21 #endif
22 22
23 using WebKit::WebDragOperation; 23 using WebKit::WebDragOperation;
24 using WebKit::WebDragOperationsMask; 24 using WebKit::WebDragOperationsMask;
25 using WebKit::WebInputEvent; 25 using WebKit::WebInputEvent;
26 using content::RenderWidgetHostView;
26 using content::WebContents; 27 using content::WebContents;
27 28
28 namespace { 29 namespace {
29 30
30 // Called when the content view gtk widget is tabbed to, or after the call to 31 // Called when the content view gtk widget is tabbed to, or after the call to
31 // gtk_widget_child_focus() in TakeFocus(). We return true 32 // gtk_widget_child_focus() in TakeFocus(). We return true
32 // and grab focus if we don't have it. The call to 33 // and grab focus if we don't have it. The call to
33 // FocusThroughTabTraversal(bool) forwards the "move focus forward" effect to 34 // FocusThroughTabTraversal(bool) forwards the "move focus forward" effect to
34 // webkit. 35 // webkit.
35 gboolean OnFocus(GtkWidget* widget, GtkDirectionType focus, 36 gboolean OnFocus(GtkWidget* widget, GtkDirectionType focus,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 285 }
285 286
286 //////////////////////////////////////////////////////////////////////////////// 287 ////////////////////////////////////////////////////////////////////////////////
287 // NativeTabContentsView, public: 288 // NativeTabContentsView, public:
288 289
289 // static 290 // static
290 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( 291 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView(
291 internal::NativeTabContentsViewDelegate* delegate) { 292 internal::NativeTabContentsViewDelegate* delegate) {
292 return new NativeTabContentsViewGtk(delegate); 293 return new NativeTabContentsViewGtk(delegate);
293 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698