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

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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: merge origin/master 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;
17 } 18 }
18 19
19 namespace blimp { 20 namespace blimp {
20 21
21 class BlimpMessageProcessor; 22 class BlimpMessageProcessor;
22 23
23 namespace engine { 24 namespace engine {
24 25
25 class EngineRenderWidgetFeature; 26 class EngineRenderWidgetFeature;
26 27
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 63
63 // RenderWidgetMessage handler methods. 64 // RenderWidgetMessage handler methods.
64 // RenderWidgetMessageDelegate implementation. 65 // RenderWidgetMessageDelegate implementation.
65 void OnWebGestureEvent( 66 void OnWebGestureEvent(
66 content::RenderWidgetHost* render_widget_host, 67 content::RenderWidgetHost* render_widget_host,
67 std::unique_ptr<blink::WebGestureEvent> event) override; 68 std::unique_ptr<blink::WebGestureEvent> event) override;
68 void OnCompositorMessageReceived( 69 void OnCompositorMessageReceived(
69 content::RenderWidgetHost* render_widget_host, 70 content::RenderWidgetHost* render_widget_host,
70 const std::vector<uint8_t>& message) override; 71 const std::vector<uint8_t>& message) override;
71 72
73 // Text input related methods.
74 void ShowTextInputUI();
75 void HideTextInputUI();
76
72 private: 77 private:
73 // content::WebContentsObserver implementation. 78 // content::WebContentsObserver implementation.
74 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 79 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
75 void RenderViewHostChanged(content::RenderViewHost* old_host, 80 void RenderViewHostChanged(content::RenderViewHost* old_host,
76 content::RenderViewHost* new_host) override; 81 content::RenderViewHost* new_host) override;
77 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; 82 void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
78 83
84 // Sends text input field related information to the client.
85 void ProcessTextInputInfo(int request_id,
86 const content::FormFieldData& field_data);
87
79 std::unique_ptr<content::WebContents> web_contents_; 88 std::unique_ptr<content::WebContents> web_contents_;
80 const int tab_id_; 89 const int tab_id_;
81 EngineRenderWidgetFeature* render_widget_feature_; 90 EngineRenderWidgetFeature* render_widget_feature_;
82 BlimpMessageProcessor* navigation_message_sender_; 91 BlimpMessageProcessor* navigation_message_sender_;
83 92
84 // Tracks the page load status for a tab. 93 // Tracks the page load status for a tab.
85 PageLoadTracker page_load_tracker_; 94 PageLoadTracker page_load_tracker_;
86 95
96 // Tracks the number of text input requests.
97 int current_form_request_id_;
98
99 base::WeakPtrFactory<Tab> weak_factory_;
100
87 DISALLOW_COPY_AND_ASSIGN(Tab); 101 DISALLOW_COPY_AND_ASSIGN(Tab);
88 }; 102 };
89 103
90 } // namespace engine 104 } // namespace engine
91 } // namespace blimp 105 } // namespace blimp
92 106
93 #endif // BLIMP_ENGINE_SESSION_TAB_H_ 107 #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