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

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: Merge Created 4 years, 8 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 bool IsFullscreenForCurrentTab( 600 bool IsFullscreenForCurrentTab(
601 RenderWidgetHostImpl* render_widget_host) const override; 601 RenderWidgetHostImpl* render_widget_host) const override;
602 blink::WebDisplayMode GetDisplayMode( 602 blink::WebDisplayMode GetDisplayMode(
603 RenderWidgetHostImpl* render_widget_host) const override; 603 RenderWidgetHostImpl* render_widget_host) const override;
604 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; 604 void LostCapture(RenderWidgetHostImpl* render_widget_host) override;
605 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; 605 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override;
606 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 606 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
607 const std::vector<uint8_t>& proto) override; 607 const std::vector<uint8_t>& proto) override;
608 void OnRenderFrameProxyVisibilityChanged(bool visible) override; 608 void OnRenderFrameProxyVisibilityChanged(bool visible) override;
609 void SendScreenRects() override; 609 void SendScreenRects() override;
610 TextInputState GetTextInputState() override;
611 void UpdateTextInputState(RenderWidgetHostViewBase* rwhv,
612 bool text_input_state_changed) override;
610 613
611 // RenderFrameHostManager::Delegate ------------------------------------------ 614 // RenderFrameHostManager::Delegate ------------------------------------------
612 615
613 bool CreateRenderViewForRenderManager( 616 bool CreateRenderViewForRenderManager(
614 RenderViewHost* render_view_host, 617 RenderViewHost* render_view_host,
615 int opener_frame_routing_id, 618 int opener_frame_routing_id,
616 int proxy_routing_id, 619 int proxy_routing_id,
617 const FrameReplicationState& replicated_frame_state) override; 620 const FrameReplicationState& replicated_frame_state) override;
618 void CreateRenderWidgetHostViewForRenderManager( 621 void CreateRenderWidgetHostViewForRenderManager(
619 RenderViewHost* render_view_host) override; 622 RenderViewHost* render_view_host) override;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 1320
1318 // Manages media players, CDMs, and power save blockers for media. 1321 // Manages media players, CDMs, and power save blockers for media.
1319 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; 1322 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_;
1320 1323
1321 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; 1324 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
1322 1325
1323 PageImportanceSignals page_importance_signals_; 1326 PageImportanceSignals page_importance_signals_;
1324 1327
1325 bool page_scale_factor_is_one_; 1328 bool page_scale_factor_is_one_;
1326 1329
1330 // The RWHV which is currently focused.
1331 TextInputState text_input_state_;
1332 base::WeakPtr<RenderWidgetHostViewBase> view_with_active_text_input_;
Charlie Reis 2016/04/01 21:24:10 nit: List before text_input_state_, and maybe ment
EhsanK 2016/04/02 03:14:02 Done.
1333
1327 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1334 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1328 base::WeakPtrFactory<WebContentsImpl> weak_factory_; 1335 base::WeakPtrFactory<WebContentsImpl> weak_factory_;
1329 1336
1330 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1337 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1331 }; 1338 };
1332 1339
1333 // Dangerous methods which should never be made part of the public API, so we 1340 // Dangerous methods which should never be made part of the public API, so we
1334 // grant their use only to an explicit friend list (c++ attorney/client idiom). 1341 // grant their use only to an explicit friend list (c++ attorney/client idiom).
1335 class CONTENT_EXPORT WebContentsImpl::FriendZone { 1342 class CONTENT_EXPORT WebContentsImpl::FriendZone {
1336 private: 1343 private:
1337 friend class TestNavigationObserver; 1344 friend class TestNavigationObserver;
1338 friend class WebContentsAddedObserver; 1345 friend class WebContentsAddedObserver;
1339 friend class ContentBrowserSanityChecker; 1346 friend class ContentBrowserSanityChecker;
1340 1347
1341 FriendZone(); // Not instantiable. 1348 FriendZone(); // Not instantiable.
1342 1349
1343 // Adds/removes a callback called on creation of each new WebContents. 1350 // Adds/removes a callback called on creation of each new WebContents.
1344 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1351 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1345 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1352 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1346 1353
1347 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1354 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1348 }; 1355 };
1349 1356
1350 } // namespace content 1357 } // namespace content
1351 1358
1352 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1359 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698