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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a Compile Error Created 4 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 bool IsFullscreenForCurrentTab( 611 bool IsFullscreenForCurrentTab(
612 RenderWidgetHostImpl* render_widget_host) const override; 612 RenderWidgetHostImpl* render_widget_host) const override;
613 blink::WebDisplayMode GetDisplayMode( 613 blink::WebDisplayMode GetDisplayMode(
614 RenderWidgetHostImpl* render_widget_host) const override; 614 RenderWidgetHostImpl* render_widget_host) const override;
615 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; 615 void LostCapture(RenderWidgetHostImpl* render_widget_host) override;
616 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; 616 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override;
617 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 617 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
618 const std::vector<uint8_t>& proto) override; 618 const std::vector<uint8_t>& proto) override;
619 void OnRenderFrameProxyVisibilityChanged(bool visible) override; 619 void OnRenderFrameProxyVisibilityChanged(bool visible) override;
620 void SendScreenRects() override; 620 void SendScreenRects() override;
621 TextInputState GetTextInputState() override;
622 void UpdateTextInputState(RenderWidgetHostViewBase* rwhv,
623 bool text_input_state_changed) override;
621 624
622 // RenderFrameHostManager::Delegate ------------------------------------------ 625 // RenderFrameHostManager::Delegate ------------------------------------------
623 626
624 bool CreateRenderViewForRenderManager( 627 bool CreateRenderViewForRenderManager(
625 RenderViewHost* render_view_host, 628 RenderViewHost* render_view_host,
626 int opener_frame_routing_id, 629 int opener_frame_routing_id,
627 int proxy_routing_id, 630 int proxy_routing_id,
628 const FrameReplicationState& replicated_frame_state) override; 631 const FrameReplicationState& replicated_frame_state) override;
629 void CreateRenderWidgetHostViewForRenderManager( 632 void CreateRenderWidgetHostViewForRenderManager(
630 RenderViewHost* render_view_host) override; 633 RenderViewHost* render_view_host) override;
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 1333
1331 // Manages media players, CDMs, and power save blockers for media. 1334 // Manages media players, CDMs, and power save blockers for media.
1332 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; 1335 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_;
1333 1336
1334 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; 1337 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
1335 1338
1336 PageImportanceSignals page_importance_signals_; 1339 PageImportanceSignals page_importance_signals_;
1337 1340
1338 bool page_scale_factor_is_one_; 1341 bool page_scale_factor_is_one_;
1339 1342
1343 // The RWHV which is currently focused.
1344 TextInputState text_input_state_;
1345 RenderWidgetHostViewBase* view_with_active_text_input_;
1346
1340 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1347 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1341 base::WeakPtrFactory<WebContentsImpl> weak_factory_; 1348 base::WeakPtrFactory<WebContentsImpl> weak_factory_;
1342 1349
1343 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1350 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1344 }; 1351 };
1345 1352
1346 // Dangerous methods which should never be made part of the public API, so we 1353 // Dangerous methods which should never be made part of the public API, so we
1347 // grant their use only to an explicit friend list (c++ attorney/client idiom). 1354 // grant their use only to an explicit friend list (c++ attorney/client idiom).
1348 class CONTENT_EXPORT WebContentsImpl::FriendZone { 1355 class CONTENT_EXPORT WebContentsImpl::FriendZone {
1349 private: 1356 private:
1350 friend class TestNavigationObserver; 1357 friend class TestNavigationObserver;
1351 friend class WebContentsAddedObserver; 1358 friend class WebContentsAddedObserver;
1352 friend class ContentBrowserSanityChecker; 1359 friend class ContentBrowserSanityChecker;
1353 1360
1354 FriendZone(); // Not instantiable. 1361 FriendZone(); // Not instantiable.
1355 1362
1356 // Adds/removes a callback called on creation of each new WebContents. 1363 // Adds/removes a callback called on creation of each new WebContents.
1357 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1364 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1358 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1365 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1359 1366
1360 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1367 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1361 }; 1368 };
1362 1369
1363 } // namespace content 1370 } // namespace content
1364 1371
1365 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1372 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698