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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Extracting info through RHVW 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 (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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/web/WebInputEvent.h" 14 #include "third_party/WebKit/public/web/WebInputEvent.h"
14 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 17
17 class GURL; 18 class GURL;
18 19
19 namespace gfx { 20 namespace gfx {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual gfx::NativeView GetNativeView() const = 0; 85 virtual gfx::NativeView GetNativeView() const = 0;
85 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; 86 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
86 87
87 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV 88 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV
88 // doesn't support text input. 89 // doesn't support text input.
89 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for 90 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for
90 // text input. Some platforms (Mac and Android for example) use their own 91 // text input. Some platforms (Mac and Android for example) use their own
91 // text input system. 92 // text input system.
92 virtual ui::TextInputClient* GetTextInputClient() = 0; 93 virtual ui::TextInputClient* GetTextInputClient() = 0;
93 94
95 // Retrieves the text input info associated with the current form.
96 virtual void FetchTextInputInfo(
David Trainor- moved to gerrit 2016/10/26 01:36:42 It might make sense to pull a struct out for the a
shaktisahu 2016/10/31 23:13:59 Done. Added a struct in content/public/common/form
97 base::Callback<void(const std::string&, const std::string&)>& reply) = 0;
98
94 // Set focus to the associated View component. 99 // Set focus to the associated View component.
95 virtual void Focus() = 0; 100 virtual void Focus() = 0;
96 // Returns true if the View currently has the focus. 101 // Returns true if the View currently has the focus.
97 virtual bool HasFocus() const = 0; 102 virtual bool HasFocus() const = 0;
98 // Returns true is the current display surface is available. 103 // Returns true is the current display surface is available.
99 virtual bool IsSurfaceAvailableForCopy() const = 0; 104 virtual bool IsSurfaceAvailableForCopy() const = 0;
100 105
101 // Shows/hides the view. These must always be called together in pairs. 106 // Shows/hides the view. These must always be called together in pairs.
102 // It is not legal to call Hide() multiple times in a row. 107 // It is not legal to call Hide() multiple times in a row.
103 virtual void Show() = 0; 108 virtual void Show() = 0;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Returns |true| if text is currently being spoken by Mac OS X. 195 // Returns |true| if text is currently being spoken by Mac OS X.
191 virtual bool IsSpeaking() const = 0; 196 virtual bool IsSpeaking() const = 0;
192 // Stops speaking, if it is currently in progress. 197 // Stops speaking, if it is currently in progress.
193 virtual void StopSpeaking() = 0; 198 virtual void StopSpeaking() = 0;
194 #endif // defined(OS_MACOSX) 199 #endif // defined(OS_MACOSX)
195 }; 200 };
196 201
197 } // namespace content 202 } // namespace content
198 203
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 204 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698