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

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

Issue 6480106: Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Prefix new methods with 'web'. 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) 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Shows a popup menu with the specified items. 153 // Shows a popup menu with the specified items.
154 // This method should call RenderViewHost::DidSelectPopupMenuItemAt() or 154 // This method should call RenderViewHost::DidSelectPopupMenuItemAt() or
155 // RenderViewHost::DidCancelPopupMenu() ased on the user action. 155 // RenderViewHost::DidCancelPopupMenu() ased on the user action.
156 virtual void ShowPopupMenu(const gfx::Rect& bounds, 156 virtual void ShowPopupMenu(const gfx::Rect& bounds,
157 int item_height, 157 int item_height,
158 double item_font_size, 158 double item_font_size,
159 int selected_item, 159 int selected_item,
160 const std::vector<WebMenuItem>& items, 160 const std::vector<WebMenuItem>& items,
161 bool right_aligned) = 0; 161 bool right_aligned) = 0;
162 162
163 virtual bool IsWebCopyCutEnabled() = 0;
164 virtual bool IsWebPasteEnabled() = 0;
165
163 // The user started dragging content of the specified type within the 166 // The user started dragging content of the specified type within the
164 // RenderView. Contextual information about the dragged content is supplied 167 // RenderView. Contextual information about the dragged content is supplied
165 // by WebDropData. 168 // by WebDropData.
166 virtual void StartDragging(const WebDropData& drop_data, 169 virtual void StartDragging(const WebDropData& drop_data,
167 WebKit::WebDragOperationsMask allowed_ops, 170 WebKit::WebDragOperationsMask allowed_ops,
168 const SkBitmap& image, 171 const SkBitmap& image,
169 const gfx::Point& image_offset) = 0; 172 const gfx::Point& image_offset) = 0;
170 173
171 // The page wants to update the mouse cursor during a drag & drop operation. 174 // The page wants to update the mouse cursor during a drag & drop operation.
172 // |operation| describes the current operation (none, move, copy, link.) 175 // |operation| describes the current operation (none, move, copy, link.)
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 bool remember) {} 581 bool remember) {}
579 582
580 // Notification that a worker process has crashed. 583 // Notification that a worker process has crashed.
581 void WorkerCrashed() {} 584 void WorkerCrashed() {}
582 585
583 protected: 586 protected:
584 virtual ~RenderViewHostDelegate() {} 587 virtual ~RenderViewHostDelegate() {}
585 }; 588 };
586 589
587 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 590 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698