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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.h

Issue 1889313002: Revert of Browser Side Text Input State Tracking for OOPIF (Manual). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 #include "content/public/browser/web_contents_observer.h" 24 #include "content/public/browser/web_contents_observer.h"
25 #include "content/public/common/renderer_preferences.h" 25 #include "content/public/common/renderer_preferences.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 namespace content { 28 namespace content {
29 class NavigationEntry; 29 class NavigationEntry;
30 class NavigationControllerImpl; 30 class NavigationControllerImpl;
31 class RenderViewHostImpl; 31 class RenderViewHostImpl;
32 class RenderWidgetHostView; 32 class RenderWidgetHostView;
33 class WebContentsView; 33 class WebContentsView;
34 struct TextInputState;
35 34
36 enum ResourceRequestAction { 35 enum ResourceRequestAction {
37 BLOCK, 36 BLOCK,
38 RESUME, 37 RESUME,
39 CANCEL 38 CANCEL
40 }; 39 };
41 40
42 class CONTENT_EXPORT InterstitialPageImpl 41 class CONTENT_EXPORT InterstitialPageImpl
43 : public NON_EXPORTED_BASE(InterstitialPage), 42 : public NON_EXPORTED_BASE(InterstitialPage),
44 public NotificationObserver, 43 public NotificationObserver,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; 147 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override;
149 void ShowCreatedFullscreenWidget(int route_id) override; 148 void ShowCreatedFullscreenWidget(int route_id) override;
150 149
151 SessionStorageNamespace* GetSessionStorageNamespace( 150 SessionStorageNamespace* GetSessionStorageNamespace(
152 SiteInstance* instance) override; 151 SiteInstance* instance) override;
153 152
154 FrameTree* GetFrameTree() override; 153 FrameTree* GetFrameTree() override;
155 154
156 // RenderWidgetHostDelegate implementation: 155 // RenderWidgetHostDelegate implementation:
157 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; 156 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override;
158 const TextInputState* GetTextInputState() override;
159 void UpdateTextInputState(RenderWidgetHostViewBase* rwhv,
160 bool text_input_state_changed) override;
161 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 157 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
162 bool* is_keyboard_shortcut) override; 158 bool* is_keyboard_shortcut) override;
163 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; 159 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override;
164 160
165 bool enabled() const { return enabled_; } 161 bool enabled() const { return enabled_; }
166 WebContents* web_contents() const; 162 WebContents* web_contents() const;
167 const GURL& url() const { return url_; } 163 const GURL& url() const { return url_; }
168 164
169 // Creates the WebContentsView that shows the interstitial RVH. 165 // Creates the WebContentsView that shows the interstitial RVH.
170 // Overriden in unit tests. 166 // Overriden in unit tests.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 289
294 // Whether the throbber should be paused. This is true from the moment the 290 // Whether the throbber should be paused. This is true from the moment the
295 // interstitial is shown until the moment the interstitial goes away or the 291 // interstitial is shown until the moment the interstitial goes away or the
296 // user chooses to proceed. 292 // user chooses to proceed.
297 bool pause_throbber_; 293 bool pause_throbber_;
298 294
299 std::unique_ptr<InterstitialPageDelegate> delegate_; 295 std::unique_ptr<InterstitialPageDelegate> delegate_;
300 296
301 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; 297 scoped_refptr<SessionStorageNamespace> session_storage_namespace_;
302 298
303 std::unique_ptr<TextInputState> text_input_state_;
304
305 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; 299 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_;
306 300
307 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 301 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
308 }; 302 };
309 303
310 } // namespace content 304 } // namespace content
311 305
312 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 306 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/frame_host/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698