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

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

Issue 7528009: This is the exact same CL as in http://codereview.chromium.org/7570001 . (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual void RenderViewGone(base::TerminationStatus status, 172 virtual void RenderViewGone(base::TerminationStatus status,
173 int error_code) = 0; 173 int error_code) = 0;
174 174
175 // Tells the View to destroy itself. 175 // Tells the View to destroy itself.
176 virtual void Destroy() = 0; 176 virtual void Destroy() = 0;
177 177
178 // Tells the View that the tooltip text for the current mouse position over 178 // Tells the View that the tooltip text for the current mouse position over
179 // the page has changed. 179 // the page has changed.
180 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; 180 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0;
181 181
182 // Notifies the View that the renderer text selection has changed. 182 // Notifies the View that the renderer text selection has changed. |start|
183 // and |end| are the visual end points of the selection in the coordinate
184 // system of the render view.
183 virtual void SelectionChanged(const std::string& text, 185 virtual void SelectionChanged(const std::string& text,
184 const ui::Range& range) {} 186 const ui::Range& range,
187 const gfx::Point& start,
188 const gfx::Point& end) {}
185 189
186 // Tells the View whether the context menu is showing. This is used on Linux 190 // Tells the View whether the context menu is showing. This is used on Linux
187 // to suppress updates to webkit focus for the duration of the show. 191 // to suppress updates to webkit focus for the duration of the show.
188 virtual void ShowingContextMenu(bool showing) {} 192 virtual void ShowingContextMenu(bool showing) {}
189 193
190 // Allocate a backing store for this view 194 // Allocate a backing store for this view
191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 195 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
192 196
193 #if defined(OS_MACOSX) 197 #if defined(OS_MACOSX)
194 // Tells the view whether or not to accept first responder status. If |flag| 198 // 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
327 331
328 // The current reserved area in view coordinates where contents should not be 332 // The current reserved area in view coordinates where contents should not be
329 // rendered to draw the resize corner, sidebar mini tabs etc. 333 // rendered to draw the resize corner, sidebar mini tabs etc.
330 gfx::Rect reserved_rect_; 334 gfx::Rect reserved_rect_;
331 335
332 private: 336 private:
333 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 337 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
334 }; 338 };
335 339
336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 340 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698