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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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 "content/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 // If this gets included after the gtk headers, then a bunch of compiler 7 // If this gets included after the gtk headers, then a bunch of compiler
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts
9 // badly with net::URLRequestStatus::Status. 9 // badly with net::URLRequestStatus::Status.
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 bool MovedToCenter(const WebKit::WebMouseEvent& mouse_event, 97 bool MovedToCenter(const WebKit::WebMouseEvent& mouse_event,
98 const gfx::Point& center) { 98 const gfx::Point& center) {
99 return mouse_event.globalX == center.x() && 99 return mouse_event.globalX == center.x() &&
100 mouse_event.globalY == center.y(); 100 mouse_event.globalY == center.y();
101 } 101 }
102 102
103 } // namespace 103 } // namespace
104 104
105 using content::NativeWebKeyboardEvent;
105 using content::RenderWidgetHostImpl; 106 using content::RenderWidgetHostImpl;
106 using content::RenderWidgetHostView; 107 using content::RenderWidgetHostView;
107 using content::RenderWidgetHostViewPort; 108 using content::RenderWidgetHostViewPort;
108 using WebKit::WebInputEventFactory; 109 using WebKit::WebInputEventFactory;
109 using WebKit::WebMouseWheelEvent; 110 using WebKit::WebMouseWheelEvent;
110 111
111 // This class is a simple convenience wrapper for Gtk functions. It has only 112 // This class is a simple convenience wrapper for Gtk functions. It has only
112 // static methods. 113 // static methods.
113 class RenderWidgetHostViewGtkWidget { 114 class RenderWidgetHostViewGtkWidget {
114 public: 115 public:
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 browser_accessibility_manager_.reset( 1484 browser_accessibility_manager_.reset(
1484 BrowserAccessibilityManager::CreateEmptyDocument( 1485 BrowserAccessibilityManager::CreateEmptyDocument(
1485 parent, static_cast<WebAccessibility::State>(0), this)); 1486 parent, static_cast<WebAccessibility::State>(0), this));
1486 } 1487 }
1487 BrowserAccessibilityGtk* root = 1488 BrowserAccessibilityGtk* root =
1488 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1489 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1489 1490
1490 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1491 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1491 return root->GetAtkObject(); 1492 return root->GetAtkObject();
1492 } 1493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698