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

Side by Side Diff: chrome/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: Plumb selection rannge with ViewHostMsg_SelectionChanged Created 9 years, 11 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; 165 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0;
166 166
167 // Tells the View to destroy itself. 167 // Tells the View to destroy itself.
168 virtual void Destroy() = 0; 168 virtual void Destroy() = 0;
169 169
170 // Tells the View that the tooltip text for the current mouse position over 170 // Tells the View that the tooltip text for the current mouse position over
171 // the page has changed. 171 // the page has changed.
172 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; 172 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0;
173 173
174 // Notifies the View that the renderer text selection has changed. 174 // Notifies the View that the renderer text selection has changed.
175 virtual void SelectionChanged(const std::string& text) {} 175 virtual void SelectionChanged(const std::string& text, int start, int end) {}
176 176
177 // Tells the View whether the context menu is showing. This is used on Linux 177 // 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. 178 // to suppress updates to webkit focus for the duration of the show.
179 virtual void ShowingContextMenu(bool showing) {} 179 virtual void ShowingContextMenu(bool showing) {}
180 180
181 // Allocate a backing store for this view 181 // Allocate a backing store for this view
182 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 182 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
183 183
184 #if defined(OS_MACOSX) 184 #if defined(OS_MACOSX)
185 // Tells the view whether or not to accept first responder status. If |flag| 185 // Tells the view whether or not to accept first responder status. If |flag|
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 // The current reserved area in view coordinates where contents should not be 310 // The current reserved area in view coordinates where contents should not be
311 // rendered to draw the resize corner, sidebar mini tabs etc. 311 // rendered to draw the resize corner, sidebar mini tabs etc.
312 gfx::Rect reserved_rect_; 312 gfx::Rect reserved_rect_;
313 313
314 private: 314 private:
315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
316 }; 316 };
317 317
318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698