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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 2690323002: Make Interaction Media Features MQ dynamic on Windows. (Closed)
Patch Set: Rebased Created 3 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/process/kill.h" 21 #include "base/process/kill.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/renderer_host/input/input_device_change_observer.h"
23 #include "content/browser/renderer_host/render_widget_host_impl.h" 24 #include "content/browser/renderer_host/render_widget_host_impl.h"
24 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" 25 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h"
25 #include "content/browser/site_instance_impl.h" 26 #include "content/browser/site_instance_impl.h"
26 #include "content/public/browser/notification_observer.h" 27 #include "content/public/browser/notification_observer.h"
27 #include "content/public/browser/render_process_host_observer.h" 28 #include "content/public/browser/render_process_host_observer.h"
28 #include "content/public/browser/render_view_host.h" 29 #include "content/public/browser/render_view_host.h"
29 #include "net/base/load_states.h" 30 #include "net/base/load_states.h"
30 #include "third_party/WebKit/public/web/WebAXEnums.h" 31 #include "third_party/WebKit/public/web/WebAXEnums.h"
31 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 32 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
32 #include "third_party/WebKit/public/web/WebPopupType.h" 33 #include "third_party/WebKit/public/web/WebPopupType.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 RenderViewHostDelegate* GetDelegate() const override; 104 RenderViewHostDelegate* GetDelegate() const override;
104 SiteInstanceImpl* GetSiteInstance() const override; 105 SiteInstanceImpl* GetSiteInstance() const override;
105 bool IsRenderViewLive() const override; 106 bool IsRenderViewLive() const override;
106 void NotifyMoveOrResizeStarted() override; 107 void NotifyMoveOrResizeStarted() override;
107 void SetWebUIProperty(const std::string& name, 108 void SetWebUIProperty(const std::string& name,
108 const std::string& value) override; 109 const std::string& value) override;
109 void SyncRendererPrefs() override; 110 void SyncRendererPrefs() override;
110 WebPreferences GetWebkitPreferences() override; 111 WebPreferences GetWebkitPreferences() override;
111 void UpdateWebkitPreferences(const WebPreferences& prefs) override; 112 void UpdateWebkitPreferences(const WebPreferences& prefs) override;
112 void OnWebkitPreferencesChanged() override; 113 void OnWebkitPreferencesChanged() override;
114 bool InputDeviceFeaturesChanged() override;
113 void SelectWordAroundCaret() override; 115 void SelectWordAroundCaret() override;
114 116
115 // RenderProcessHostObserver implementation 117 // RenderProcessHostObserver implementation
116 void RenderProcessReady(RenderProcessHost* host) override; 118 void RenderProcessReady(RenderProcessHost* host) override;
117 void RenderProcessExited(RenderProcessHost* host, 119 void RenderProcessExited(RenderProcessHost* host,
118 base::TerminationStatus status, 120 base::TerminationStatus status,
119 int exit_code) override; 121 int exit_code) override;
120 122
121 void set_delegate(RenderViewHostDelegate* d) { 123 void set_delegate(RenderViewHostDelegate* d) {
122 CHECK(d); // http://crbug.com/82827 124 CHECK(d); // http://crbug.com/82827
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // is in turn called when any of the settings change that the WebPreferences 319 // is in turn called when any of the settings change that the WebPreferences
318 // values depend on. 320 // values depend on.
319 std::unique_ptr<WebPreferences> web_preferences_; 321 std::unique_ptr<WebPreferences> web_preferences_;
320 322
321 // The timeout monitor that runs from when the page close is started in 323 // The timeout monitor that runs from when the page close is started in
322 // ClosePage() until either the render process ACKs the close with an IPC to 324 // ClosePage() until either the render process ACKs the close with an IPC to
323 // OnClosePageACK(), or until the timeout triggers and the page is forcibly 325 // OnClosePageACK(), or until the timeout triggers and the page is forcibly
324 // closed. 326 // closed.
325 std::unique_ptr<TimeoutMonitor> close_timeout_; 327 std::unique_ptr<TimeoutMonitor> close_timeout_;
326 328
329 // This monitors input changes so they can be reflected to the interaction MQ.
330 InputDeviceChangeObserver* input_device_change_observer_;
331
327 bool updating_web_preferences_; 332 bool updating_web_preferences_;
328 333
329 bool render_view_ready_on_process_launch_; 334 bool render_view_ready_on_process_launch_;
330 335
331 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 336 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
332 337
333 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 338 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
334 }; 339 };
335 340
336 } // namespace content 341 } // namespace content
337 342
338 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698