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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/browser/renderer_host/backing_store_skia.h" 9 #include "content/browser/renderer_host/backing_store_skia.h"
10 #include "content/browser/renderer_host/image_transport_factory.h" 10 #include "content/browser/renderer_host/image_transport_factory.h"
(...skipping 16 matching lines...) Expand all
27 #include "ui/base/hit_test.h" 27 #include "ui/base/hit_test.h"
28 #include "ui/base/ime/input_method.h" 28 #include "ui/base/ime/input_method.h"
29 #include "ui/base/ui_base_types.h" 29 #include "ui/base/ui_base_types.h"
30 #include "ui/gfx/canvas.h" 30 #include "ui/gfx/canvas.h"
31 #include "ui/gfx/canvas_skia.h" 31 #include "ui/gfx/canvas_skia.h"
32 #include "ui/gfx/compositor/compositor.h" 32 #include "ui/gfx/compositor/compositor.h"
33 #include "ui/gfx/compositor/layer.h" 33 #include "ui/gfx/compositor/layer.h"
34 #include "ui/gfx/screen.h" 34 #include "ui/gfx/screen.h"
35 #include "ui/gfx/skia_util.h" 35 #include "ui/gfx/skia_util.h"
36 36
37 using content::RenderWidgetHost;
38 using content::RenderWidgetHostImpl;
37 using content::RenderWidgetHostView; 39 using content::RenderWidgetHostView;
38 using WebKit::WebTouchEvent; 40 using WebKit::WebTouchEvent;
39 41
40 namespace { 42 namespace {
41 43
42 // In mouse lock mode, we need to prevent the (invisible) cursor from hitting 44 // 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, 45 // 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 46 // 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 47 // 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 48 // significantly. Therefore, we move the cursor to the center of the view only
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 WebKit::WebScreenInfo* results) { 1052 WebKit::WebScreenInfo* results) {
1051 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 1053 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
1052 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 1054 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
1053 results->availableRect = results->rect; 1055 results->availableRect = results->rect;
1054 // TODO(derat): Don't hardcode this? 1056 // TODO(derat): Don't hardcode this?
1055 results->depth = 24; 1057 results->depth = 24;
1056 results->depthPerComponent = 8; 1058 results->depthPerComponent = 8;
1057 results->verticalDPI = 96; 1059 results->verticalDPI = 96;
1058 results->horizontalDPI = 96; 1060 results->horizontalDPI = 96;
1059 } 1061 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698