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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 6246001: Move app/key* to ui/base/keycodes/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer_host/render_widget_host_view_views.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "app/keyboard_code_conversion_gtk.h"
11 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
12 #include "app/x11_util.h" 11 #include "app/x11_util.h"
13 #include "base/command_line.h" 12 #include "base/command_line.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/message_loop.h" 14 #include "base/message_loop.h"
16 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
17 #include "base/string_number_conversions.h" 16 #include "base/string_number_conversions.h"
18 #include "base/task.h" 17 #include "base/task.h"
19 #include "base/time.h" 18 #include "base/time.h"
20 #include "chrome/browser/renderer_host/backing_store_x.h" 19 #include "chrome/browser/renderer_host/backing_store_x.h"
21 #include "chrome/browser/renderer_host/render_widget_host.h" 20 #include "chrome/browser/renderer_host/render_widget_host.h"
22 #include "chrome/common/native_web_keyboard_event.h" 21 #include "chrome/common/native_web_keyboard_event.h"
23 #include "chrome/common/render_messages.h" 22 #include "chrome/common/render_messages.h"
24 #include "chrome/common/result_codes.h" 23 #include "chrome/common/result_codes.h"
25 #include "gfx/canvas.h" 24 #include "gfx/canvas.h"
26 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" 25 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 26 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
27 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h"
28 #include "views/event.h" 28 #include "views/event.h"
29 #include "views/widget/widget.h" 29 #include "views/widget/widget.h"
30 #include "views/widget/widget_gtk.h" 30 #include "views/widget/widget_gtk.h"
31 31
32 static const int kMaxWindowWidth = 4000; 32 static const int kMaxWindowWidth = 4000;
33 static const int kMaxWindowHeight = 4000; 33 static const int kMaxWindowHeight = 4000;
34 static const char* kRenderWidgetHostViewKey = "__RENDER_WIDGET_HOST_VIEW__"; 34 static const char* kRenderWidgetHostViewKey = "__RENDER_WIDGET_HOST_VIEW__";
35 35
36 using WebKit::WebInputEventFactory; 36 using WebKit::WebInputEventFactory;
37 using WebKit::WebMouseWheelEvent; 37 using WebKit::WebMouseWheelEvent;
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } 739 }
740 740
741 // static 741 // static
742 RenderWidgetHostView* 742 RenderWidgetHostView*
743 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 743 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
744 gfx::NativeView widget) { 744 gfx::NativeView widget) {
745 gpointer user_data = g_object_get_data(G_OBJECT(widget), 745 gpointer user_data = g_object_get_data(G_OBJECT(widget),
746 kRenderWidgetHostViewKey); 746 kRenderWidgetHostViewKey);
747 return reinterpret_cast<RenderWidgetHostView*>(user_data); 747 return reinterpret_cast<RenderWidgetHostView*>(user_data);
748 } 748 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_unittest.cc ('k') | chrome/browser/ui/cocoa/html_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698