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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/backing_store_skia.h" 8 #include "content/browser/renderer_host/backing_store_skia.h"
9 #include "content/browser/renderer_host/render_widget_host.h" 9 #include "content/browser/renderer_host/render_widget_host.h"
10 #include "content/browser/renderer_host/web_input_event_aura.h" 10 #include "content/browser/renderer_host/web_input_event_aura.h"
(...skipping 17 matching lines...) Expand all
28 #include "ui/gfx/canvas_skia.h" 28 #include "ui/gfx/canvas_skia.h"
29 #include "ui/gfx/compositor/layer.h" 29 #include "ui/gfx/compositor/layer.h"
30 #include "ui/gfx/screen.h" 30 #include "ui/gfx/screen.h"
31 #include "ui/gfx/skia_util.h" 31 #include "ui/gfx/skia_util.h"
32 32
33 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 33 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
34 #include "base/bind.h" 34 #include "base/bind.h"
35 #include "content/browser/renderer_host/image_transport_client.h" 35 #include "content/browser/renderer_host/image_transport_client.h"
36 #endif 36 #endif
37 37
38 using content::RenderWidgetHostView;
38 using WebKit::WebTouchEvent; 39 using WebKit::WebTouchEvent;
39 40
40 namespace { 41 namespace {
41 42
42 // In mouse lock mode, we need to prevent the (invisible) cursor from hitting 43 // In mouse lock mode, we need to prevent the (invisible) cursor from hitting
43 // the border of the view, in order to get valid movement information. However, 44 // the border of the view, in order to get valid movement information. However,
44 // forcing the cursor back to the center of the view after each mouse move 45 // forcing the cursor back to the center of the view after each mouse move
45 // doesn't work well. It reduces the frequency of useful mouse move messages 46 // doesn't work well. It reduces the frequency of useful mouse move messages
46 // significantly. Therefore, we move the cursor to the center of the view only 47 // significantly. Therefore, we move the cursor to the center of the view only
47 // if it approaches the border. |kMouseLockBorderPercentage| specifies the width 48 // if it approaches the border. |kMouseLockBorderPercentage| specifies the width
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 // static 1090 // static
1090 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1091 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1091 WebKit::WebScreenInfo* results) { 1092 WebKit::WebScreenInfo* results) {
1092 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 1093 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
1093 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 1094 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
1094 results->availableRect = results->rect; 1095 results->availableRect = results->rect;
1095 // TODO(derat): Don't hardcode this? 1096 // TODO(derat): Don't hardcode this?
1096 results->depth = 24; 1097 results->depth = 24;
1097 results->depthPerComponent = 8; 1098 results->depthPerComponent = 8;
1098 } 1099 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698