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

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

Issue 5791003: Fix: include result_codes.h (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 10 #include "app/keyboard_code_conversion_gtk.h"
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/x11_util.h" 12 #include "app/x11_util.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
18 #include "base/task.h" 18 #include "base/task.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "chrome/browser/renderer_host/backing_store_x.h" 20 #include "chrome/browser/renderer_host/backing_store_x.h"
21 #include "chrome/browser/renderer_host/render_widget_host.h" 21 #include "chrome/browser/renderer_host/render_widget_host.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/native_web_keyboard_event.h" 23 #include "chrome/common/native_web_keyboard_event.h"
24 #include "chrome/common/render_messages.h" 24 #include "chrome/common/render_messages.h"
25 #include "chrome/common/result_codes.h"
25 #include "gfx/canvas.h" 26 #include "gfx/canvas.h"
26 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" 27 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 28 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
28 #include "views/event.h" 29 #include "views/event.h"
29 #include "views/widget/widget.h" 30 #include "views/widget/widget.h"
30 #include "views/widget/widget_gtk.h" 31 #include "views/widget/widget_gtk.h"
31 32
32 static const int kMaxWindowWidth = 4000; 33 static const int kMaxWindowWidth = 4000;
33 static const int kMaxWindowHeight = 4000; 34 static const int kMaxWindowHeight = 4000;
34 static const char* kRenderWidgetHostViewKey = "__RENDER_WIDGET_HOST_VIEW__"; 35 static const char* kRenderWidgetHostViewKey = "__RENDER_WIDGET_HOST_VIEW__";
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 729 }
729 730
730 // static 731 // static
731 RenderWidgetHostView* 732 RenderWidgetHostView*
732 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 733 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
733 gfx::NativeView widget) { 734 gfx::NativeView widget) {
734 gpointer user_data = g_object_get_data(G_OBJECT(widget), 735 gpointer user_data = g_object_get_data(G_OBJECT(widget),
735 kRenderWidgetHostViewKey); 736 kRenderWidgetHostViewKey);
736 return reinterpret_cast<RenderWidgetHostView*>(user_data); 737 return reinterpret_cast<RenderWidgetHostView*>(user_data);
737 } 738 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698