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

Side by Side Diff: blimp/engine/session/tab.h

Issue 2513333002: Revert of Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/tab.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_ENGINE_SESSION_TAB_H_ 5 #ifndef BLIMP_ENGINE_SESSION_TAB_H_
6 #define BLIMP_ENGINE_SESSION_TAB_H_ 6 #define BLIMP_ENGINE_SESSION_TAB_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/engine/feature/engine_render_widget_feature.h" 9 #include "blimp/engine/feature/engine_render_widget_feature.h"
10 #include "blimp/engine/session/page_load_tracker.h" 10 #include "blimp/engine/session/page_load_tracker.h"
11 #include "content/public/browser/invalidate_type.h" 11 #include "content/public/browser/invalidate_type.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 13
14 namespace content { 14 namespace content {
15 class RenderViewHost; 15 class RenderViewHost;
16 class WebContents; 16 class WebContents;
17 struct FormFieldData;
18 } 17 }
19 18
20 namespace blimp { 19 namespace blimp {
21 20
22 class BlimpMessageProcessor; 21 class BlimpMessageProcessor;
23 22
24 namespace engine { 23 namespace engine {
25 24
26 class EngineRenderWidgetFeature; 25 class EngineRenderWidgetFeature;
27 26
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 62
64 // RenderWidgetMessage handler methods. 63 // RenderWidgetMessage handler methods.
65 // RenderWidgetMessageDelegate implementation. 64 // RenderWidgetMessageDelegate implementation.
66 void OnWebGestureEvent( 65 void OnWebGestureEvent(
67 content::RenderWidgetHost* render_widget_host, 66 content::RenderWidgetHost* render_widget_host,
68 std::unique_ptr<blink::WebGestureEvent> event) override; 67 std::unique_ptr<blink::WebGestureEvent> event) override;
69 void OnCompositorMessageReceived( 68 void OnCompositorMessageReceived(
70 content::RenderWidgetHost* render_widget_host, 69 content::RenderWidgetHost* render_widget_host,
71 const std::vector<uint8_t>& message) override; 70 const std::vector<uint8_t>& message) override;
72 71
73 // Text input related methods.
74 void ShowTextInputUI();
75 void HideTextInputUI();
76
77 private: 72 private:
78 // content::WebContentsObserver implementation. 73 // content::WebContentsObserver implementation.
79 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 74 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
80 void RenderViewHostChanged(content::RenderViewHost* old_host, 75 void RenderViewHostChanged(content::RenderViewHost* old_host,
81 content::RenderViewHost* new_host) override; 76 content::RenderViewHost* new_host) override;
82 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; 77 void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
83 78
84 // Sends text input field related information to the client.
85 void ProcessTextInputInfo(int request_id,
86 const content::FormFieldData& field_data);
87
88 std::unique_ptr<content::WebContents> web_contents_; 79 std::unique_ptr<content::WebContents> web_contents_;
89 const int tab_id_; 80 const int tab_id_;
90 EngineRenderWidgetFeature* render_widget_feature_; 81 EngineRenderWidgetFeature* render_widget_feature_;
91 BlimpMessageProcessor* navigation_message_sender_; 82 BlimpMessageProcessor* navigation_message_sender_;
92 83
93 // Tracks the page load status for a tab. 84 // Tracks the page load status for a tab.
94 PageLoadTracker page_load_tracker_; 85 PageLoadTracker page_load_tracker_;
95 86
96 // Tracks the number of text input requests.
97 int current_form_request_id_;
98
99 base::WeakPtrFactory<Tab> weak_factory_;
100
101 DISALLOW_COPY_AND_ASSIGN(Tab); 87 DISALLOW_COPY_AND_ASSIGN(Tab);
102 }; 88 };
103 89
104 } // namespace engine 90 } // namespace engine
105 } // namespace blimp 91 } // namespace blimp
106 92
107 #endif // BLIMP_ENGINE_SESSION_TAB_H_ 93 #endif // BLIMP_ENGINE_SESSION_TAB_H_
OLDNEW
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698