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

Side by Side Diff: content/public/renderer/render_view.h

Issue 2349523002: Add support for edit commands in OOPIFs. (Closed)
Patch Set: Created 4 years, 3 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 (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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Whether content state (such as form state, scroll position and page 101 // Whether content state (such as form state, scroll position and page
102 // contents) should be sent to the browser immediately. This is normally 102 // contents) should be sent to the browser immediately. This is normally
103 // false, but set to true by some tests. 103 // false, but set to true by some tests.
104 virtual bool GetContentStateImmediately() const = 0; 104 virtual bool GetContentStateImmediately() const = 0;
105 105
106 // Notifies the renderer that a paint is to be generated for the size 106 // Notifies the renderer that a paint is to be generated for the size
107 // passed in. 107 // passed in.
108 virtual void Repaint(const gfx::Size& size) = 0; 108 virtual void Repaint(const gfx::Size& size) = 0;
109 109
110 // Inject edit commands to be used for the next keyboard event. 110 // Inject edit commands to be used for the next keyboard event.
111 // TODO(alexmos): Currently, these are used only by BlinkTestRunner. They
112 // should be removed from RenderView and instead be plumbed through the
113 // target frame and WebFrameTestProxy.
111 virtual void SetEditCommandForNextKeyEvent(const std::string& name, 114 virtual void SetEditCommandForNextKeyEvent(const std::string& name,
112 const std::string& value) = 0; 115 const std::string& value) = 0;
113 virtual void ClearEditCommands() = 0; 116 virtual void ClearEditCommands() = 0;
114 117
115 // Returns |renderer_preferences_.accept_languages| value. 118 // Returns |renderer_preferences_.accept_languages| value.
116 virtual const std::string& GetAcceptLanguages() const = 0; 119 virtual const std::string& GetAcceptLanguages() const = 0;
117 120
118 #if defined(OS_ANDROID) 121 #if defined(OS_ANDROID)
119 virtual void UpdateTopControlsState(TopControlsState constraints, 122 virtual void UpdateTopControlsState(TopControlsState constraints,
120 TopControlsState current, 123 TopControlsState current,
(...skipping 17 matching lines...) Expand all
138 141
139 private: 142 private:
140 // This interface should only be implemented inside content. 143 // This interface should only be implemented inside content.
141 friend class RenderViewImpl; 144 friend class RenderViewImpl;
142 RenderView() {} 145 RenderView() {}
143 }; 146 };
144 147
145 } // namespace content 148 } // namespace content
146 149
147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 150 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698