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

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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: dtrainor comments 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
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 ShowIme();
David Trainor- moved to gerrit 2016/11/03 04:25:49 ShowFormInputUI/HideFormInputUI?
75 void HideIme();
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 GetFocusedFormFieldData(const content::FormFieldData& field_data);
86
79 std::unique_ptr<content::WebContents> web_contents_; 87 std::unique_ptr<content::WebContents> web_contents_;
80 const int tab_id_; 88 const int tab_id_;
81 EngineRenderWidgetFeature* render_widget_feature_; 89 EngineRenderWidgetFeature* render_widget_feature_;
82 BlimpMessageProcessor* navigation_message_sender_; 90 BlimpMessageProcessor* navigation_message_sender_;
83 91
84 // Tracks the page load status for a tab. 92 // Tracks the page load status for a tab.
85 PageLoadTracker page_load_tracker_; 93 PageLoadTracker page_load_tracker_;
86 94
95 base::WeakPtrFactory<Tab> weak_factory_;
96
87 DISALLOW_COPY_AND_ASSIGN(Tab); 97 DISALLOW_COPY_AND_ASSIGN(Tab);
88 }; 98 };
89 99
90 } // namespace engine 100 } // namespace engine
91 } // namespace blimp 101 } // namespace blimp
92 102
93 #endif // BLIMP_ENGINE_SESSION_TAB_H_ 103 #endif // BLIMP_ENGINE_SESSION_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698