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

Side by Side Diff: content/browser/web_contents/web_contents_view_gtk.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 "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 11 matching lines...) Expand all
22 #include "content/browser/web_contents/web_drag_source_gtk.h" 22 #include "content/browser/web_contents/web_drag_source_gtk.h"
23 #include "content/public/browser/web_contents_delegate.h" 23 #include "content/public/browser/web_contents_delegate.h"
24 #include "content/public/browser/web_contents_view_delegate.h" 24 #include "content/public/browser/web_contents_view_delegate.h"
25 #include "content/public/common/drop_data.h" 25 #include "content/public/common/drop_data.h"
26 #include "ui/base/gtk/gtk_expanded_container.h" 26 #include "ui/base/gtk/gtk_expanded_container.h"
27 #include "ui/gfx/image/image_skia.h" 27 #include "ui/gfx/image/image_skia.h"
28 #include "ui/gfx/point.h" 28 #include "ui/gfx/point.h"
29 #include "ui/gfx/rect.h" 29 #include "ui/gfx/rect.h"
30 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
31 31
32 using WebKit::WebDragOperation; 32 using blink::WebDragOperation;
33 using WebKit::WebDragOperationsMask; 33 using blink::WebDragOperationsMask;
34 34
35 namespace content { 35 namespace content {
36 namespace { 36 namespace {
37 37
38 // Called when the mouse leaves the widget. We notify our delegate. 38 // Called when the mouse leaves the widget. We notify our delegate.
39 gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event, 39 gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event,
40 WebContentsImpl* web_contents) { 40 WebContentsImpl* web_contents) {
41 if (web_contents->GetDelegate()) 41 if (web_contents->GetDelegate())
42 web_contents->GetDelegate()->ContentsMouseEvent( 42 web_contents->GetDelegate()->ContentsMouseEvent(
43 web_contents, gfx::Point(event->x_root, event->y_root), false); 43 web_contents, gfx::Point(event->x_root, event->y_root), false);
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 // We manually tell our RWHV to resize the renderer content. This avoids 422 // We manually tell our RWHV to resize the renderer content. This avoids
423 // spurious resizes from GTK+. 423 // spurious resizes from GTK+.
424 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); 424 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
425 if (rwhv) 425 if (rwhv)
426 rwhv->SetSize(size); 426 rwhv->SetSize(size);
427 if (web_contents_->GetInterstitialPage()) 427 if (web_contents_->GetInterstitialPage())
428 web_contents_->GetInterstitialPage()->SetSize(size); 428 web_contents_->GetInterstitialPage()->SetSize(size);
429 } 429 }
430 430
431 } // namespace content 431 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_gtk.h ('k') | content/browser/web_contents/web_contents_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698