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

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

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
15 #include "base/win/scoped_gdi_object.h" 15 #include "base/win/scoped_gdi_object.h"
16 #include "base/win/win_util.h" 16 #include "base/win/win_util.h"
17 #include "base/win/wrapped_window_proc.h" 17 #include "base/win/wrapped_window_proc.h"
18 #include "content/browser/accessibility/browser_accessibility_manager.h" 18 #include "content/browser/accessibility/browser_accessibility_manager.h"
19 #include "content/browser/accessibility/browser_accessibility_state.h" 19 #include "content/browser/accessibility/browser_accessibility_state.h"
20 #include "content/browser/accessibility/browser_accessibility_win.h" 20 #include "content/browser/accessibility/browser_accessibility_win.h"
21 #include "content/browser/browser_thread.h" 21 #include "content/browser/browser_thread.h"
22 #include "content/browser/plugin_process_host.h" 22 #include "content/browser/plugin_process_host.h"
23 #include "content/browser/renderer_host/backing_store.h" 23 #include "content/browser/renderer_host/backing_store.h"
24 #include "content/browser/renderer_host/backing_store_win.h" 24 #include "content/browser/renderer_host/backing_store_win.h"
25 #include "content/browser/renderer_host/render_process_host.h" 25 #include "content/browser/renderer_host/render_process_host.h"
26 #include "content/browser/renderer_host/render_widget_host.h" 26 #include "content/browser/renderer_host/render_widget_host.h"
27 #include "content/common/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "content/common/plugin_messages.h" 28 #include "content/common/plugin_messages.h"
29 #include "content/common/view_messages.h" 29 #include "content/common/view_messages.h"
30 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
31 #include "content/public/browser/native_web_keyboard_event.h" 31 #include "content/public/browser/native_web_keyboard_event.h"
32 #include "content/public/browser/notification_types.h" 32 #include "content/public/browser/notification_types.h"
33 #include "content/public/common/content_switches.h" 33 #include "content/public/common/content_switches.h"
34 #include "skia/ext/skia_utils_win.h" 34 #include "skia/ext/skia_utils_win.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 shutdown_factory_(this), 229 shutdown_factory_(this),
230 parent_hwnd_(NULL), 230 parent_hwnd_(NULL),
231 is_loading_(false), 231 is_loading_(false),
232 overlay_color_(0), 232 overlay_color_(0),
233 text_input_type_(ui::TEXT_INPUT_TYPE_NONE), 233 text_input_type_(ui::TEXT_INPUT_TYPE_NONE),
234 is_fullscreen_(false), 234 is_fullscreen_(false),
235 ignore_mouse_movement_(true) { 235 ignore_mouse_movement_(true) {
236 render_widget_host_->SetView(this); 236 render_widget_host_->SetView(this);
237 registrar_.Add(this, 237 registrar_.Add(this,
238 content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, 238 content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
239 NotificationService::AllBrowserContextsAndSources()); 239 content::NotificationService::AllBrowserContextsAndSources());
240 } 240 }
241 241
242 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() { 242 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() {
243 UnlockMouse(); 243 UnlockMouse();
244 ResetTooltip(); 244 ResetTooltip();
245 } 245 }
246 246
247 void RenderWidgetHostViewWin::CreateWnd(HWND parent) { 247 void RenderWidgetHostViewWin::CreateWnd(HWND parent) {
248 Create(parent); // ATL function to create the window. 248 Create(parent); // ATL function to create the window.
249 } 249 }
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 if (message == WM_MOUSEMOVE) { 1940 if (message == WM_MOUSEMOVE) {
1941 CPoint center = GetClientCenter(); 1941 CPoint center = GetClientCenter();
1942 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter(). 1942 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter().
1943 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y) 1943 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y)
1944 return; 1944 return;
1945 } 1945 }
1946 1946
1947 ForwardMouseEventToRenderer(message, wparam, lparam); 1947 ForwardMouseEventToRenderer(message, wparam, lparam);
1948 } 1948 }
1949 1949
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698