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

Side by Side Diff: chrome/browser/extensions/extension_clipboard_api.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 #include "chrome/browser/extensions/extension_clipboard_api.h" 5 #include "chrome/browser/extensions/extension_clipboard_api.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/extension_tabs_module.h" 9 #include "chrome/browser/extensions/extension_tabs_module.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/tab_contents_wrapper.h" 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
13 #include "chrome/common/extensions/extension_error_utils.h" 13 #include "chrome/common/extensions/extension_error_utils.h"
14 14
15 namespace { 15 namespace {
16 // Errors. 16 // Errors.
17 const char kNoTabError[] = "No tab with id: *."; 17 const char kNoTabError[] = "No tab with id: *.";
18 } 18 }
19 19
20 bool ClipboardFunction::RunImpl() { 20 bool ClipboardFunction::RunImpl() {
21 int tab_id; 21 int tab_id;
22 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id)); 22 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id));
(...skipping 21 matching lines...) Expand all
44 44
45 bool ExecuteCutClipboardFunction::RunImpl(RenderViewHost* render_view_host) { 45 bool ExecuteCutClipboardFunction::RunImpl(RenderViewHost* render_view_host) {
46 render_view_host->Cut(); 46 render_view_host->Cut();
47 return true; 47 return true;
48 } 48 }
49 49
50 bool ExecutePasteClipboardFunction::RunImpl(RenderViewHost* render_view_host) { 50 bool ExecutePasteClipboardFunction::RunImpl(RenderViewHost* render_view_host) {
51 render_view_host->Paste(); 51 render_view_host->Paste();
52 return true; 52 return true;
53 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/browser/extensions/extension_cookies_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698