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

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

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "base/gfx/native_widget_types.h" 8 #include "base/gfx/native_widget_types.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Tells the View to destroy itself. 125 // Tells the View to destroy itself.
126 virtual void Destroy() = 0; 126 virtual void Destroy() = 0;
127 127
128 // Tells the View that the tooltip text for the current mouse position over 128 // Tells the View that the tooltip text for the current mouse position over
129 // the page has changed. 129 // the page has changed.
130 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; 130 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0;
131 131
132 // Notifies the View that the renderer text selection has changed. 132 // Notifies the View that the renderer text selection has changed.
133 virtual void SelectionChanged(const std::string& text) { }; 133 virtual void SelectionChanged(const std::string& text) { };
134 134
135 // Tells the View to get the text from the selection clipboard and send it
136 // back to the renderer asynchronously.
137 virtual void PasteFromSelectionClipboard() { }
138
139 // Tells the View whether the context menu is showing. This is used on Linux 135 // Tells the View whether the context menu is showing. This is used on Linux
140 // to suppress updates to webkit focus for the duration of the show. 136 // to suppress updates to webkit focus for the duration of the show.
141 virtual void ShowingContextMenu(bool showing) { } 137 virtual void ShowingContextMenu(bool showing) { }
142 138
143 // Allocate a backing store for this view 139 // Allocate a backing store for this view
144 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 140 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
145 141
146 #if defined(OS_MACOSX) 142 #if defined(OS_MACOSX)
147 // Display a native control popup menu for WebKit. 143 // Display a native control popup menu for WebKit.
148 virtual void ShowPopupWithItems(gfx::Rect bounds, 144 virtual void ShowPopupWithItems(gfx::Rect bounds,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 183
188 // A custom background to paint behind the web content. This will be tiled 184 // A custom background to paint behind the web content. This will be tiled
189 // horizontally. Can be null, in which case we fall back to painting white. 185 // horizontally. Can be null, in which case we fall back to painting white.
190 SkBitmap background_; 186 SkBitmap background_;
191 187
192 private: 188 private:
193 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
194 }; 190 };
195 191
196 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 192 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698