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

Side by Side Diff: chrome/browser/tab_contents/background_contents.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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual void ShowCreatedWidget(int route_id, 94 virtual void ShowCreatedWidget(int route_id,
95 const gfx::Rect& initial_pos); 95 const gfx::Rect& initial_pos);
96 virtual void ShowCreatedFullscreenWidget(int route_id); 96 virtual void ShowCreatedFullscreenWidget(int route_id);
97 virtual void ShowContextMenu(const ContextMenuParams& params) {} 97 virtual void ShowContextMenu(const ContextMenuParams& params) {}
98 virtual void ShowPopupMenu(const gfx::Rect& bounds, 98 virtual void ShowPopupMenu(const gfx::Rect& bounds,
99 int item_height, 99 int item_height,
100 double item_font_size, 100 double item_font_size,
101 int selected_item, 101 int selected_item,
102 const std::vector<WebMenuItem>& items, 102 const std::vector<WebMenuItem>& items,
103 bool right_aligned) {} 103 bool right_aligned) {}
104 virtual bool IsWebCopyCutEnabled() { return false; }
105 virtual bool IsWebPasteEnabled() { return false; }
104 virtual void StartDragging(const WebDropData& drop_data, 106 virtual void StartDragging(const WebDropData& drop_data,
105 WebKit::WebDragOperationsMask allowed_operations, 107 WebKit::WebDragOperationsMask allowed_operations,
106 const SkBitmap& image, 108 const SkBitmap& image,
107 const gfx::Point& image_offset) {} 109 const gfx::Point& image_offset) {}
108 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} 110 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {}
109 virtual void GotFocus() {} 111 virtual void GotFocus() {}
110 virtual void TakeFocus(bool reverse) {} 112 virtual void TakeFocus(bool reverse) {}
111 virtual void LostCapture() {} 113 virtual void LostCapture() {}
112 virtual void Activate() {} 114 virtual void Activate() {}
113 virtual void Deactivate() {} 115 virtual void Deactivate() {}
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 BackgroundContents* contents; 179 BackgroundContents* contents;
178 180
179 // The name of the parent frame for these contents. 181 // The name of the parent frame for these contents.
180 const string16& frame_name; 182 const string16& frame_name;
181 183
182 // The ID of the parent application (if any). 184 // The ID of the parent application (if any).
183 const string16& application_id; 185 const string16& application_id;
184 }; 186 };
185 187
186 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 188 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698