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

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

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jam@ comments Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Indicates whether the page has finished loading. 128 // Indicates whether the page has finished loading.
129 virtual void SetIsLoading(bool is_loading) = 0; 129 virtual void SetIsLoading(bool is_loading) = 0;
130 130
131 // Updates the state of the input method attached to the view. 131 // Updates the state of the input method attached to the view.
132 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, 132 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type,
133 const gfx::Rect& caret_rect) = 0; 133 const gfx::Rect& caret_rect) = 0;
134 134
135 // Cancel the ongoing composition of the input method attached to the view. 135 // Cancel the ongoing composition of the input method attached to the view.
136 virtual void ImeCancelComposition() = 0; 136 virtual void ImeCancelComposition() = 0;
137 137
138 // Updates the range of the marked text in an IME composition.
139 virtual void ImeCompositionRangeChanged(int start, int end) {}
140
138 // Informs the view that a portion of the widget's backing store was scrolled 141 // Informs the view that a portion of the widget's backing store was scrolled
139 // and/or painted. The view should ensure this gets copied to the screen. 142 // and/or painted. The view should ensure this gets copied to the screen.
140 // 143 //
141 // If the scroll_rect is non-empty, then a portion of the widget's backing 144 // If the scroll_rect is non-empty, then a portion of the widget's backing
142 // store was scrolled by dx pixels horizontally and dy pixels vertically. 145 // store was scrolled by dx pixels horizontally and dy pixels vertically.
143 // The exposed rect from the scroll operation is included in copy_rects. 146 // The exposed rect from the scroll operation is included in copy_rects.
144 // 147 //
145 // There are subtle performance implications here. The RenderWidget gets sent 148 // There are subtle performance implications here. The RenderWidget gets sent
146 // a paint ack after this returns, so if the view only ever invalidates in 149 // a paint ack after this returns, so if the view only ever invalidates in
147 // response to this, then on Windows, where WM_PAINT has lower priority than 150 // response to this, then on Windows, where WM_PAINT has lower priority than
(...skipping 17 matching lines...) Expand all
165 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; 168 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0;
166 169
167 // Tells the View to destroy itself. 170 // Tells the View to destroy itself.
168 virtual void Destroy() = 0; 171 virtual void Destroy() = 0;
169 172
170 // Tells the View that the tooltip text for the current mouse position over 173 // Tells the View that the tooltip text for the current mouse position over
171 // the page has changed. 174 // the page has changed.
172 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; 175 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0;
173 176
174 // Notifies the View that the renderer text selection has changed. 177 // Notifies the View that the renderer text selection has changed.
175 virtual void SelectionChanged(const std::string& text) {} 178 virtual void SelectionChanged(const std::string& text, int start, int end) {}
176 179
177 // Tells the View whether the context menu is showing. This is used on Linux 180 // Tells the View whether the context menu is showing. This is used on Linux
178 // to suppress updates to webkit focus for the duration of the show. 181 // to suppress updates to webkit focus for the duration of the show.
179 virtual void ShowingContextMenu(bool showing) {} 182 virtual void ShowingContextMenu(bool showing) {}
180 183
181 // Allocate a backing store for this view 184 // Allocate a backing store for this view
182 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 185 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
183 186
184 #if defined(OS_MACOSX) 187 #if defined(OS_MACOSX)
185 // Tells the view whether or not to accept first responder status. If |flag| 188 // Tells the view whether or not to accept first responder status. If |flag|
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 321
319 // The current reserved area in view coordinates where contents should not be 322 // The current reserved area in view coordinates where contents should not be
320 // rendered to draw the resize corner, sidebar mini tabs etc. 323 // rendered to draw the resize corner, sidebar mini tabs etc.
321 gfx::Rect reserved_rect_; 324 gfx::Rect reserved_rect_;
322 325
323 private: 326 private:
324 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 327 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
325 }; 328 };
326 329
327 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698