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

Side by Side Diff: chrome/browser/extensions/api/terminal/terminal_private_api.cc

Issue 23547011: Move c/b/extension/api/* into extensions namespace (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/api/terminal/terminal_private_api.h" 5 #include "chrome/browser/extensions/api/terminal/terminal_private_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/chromeos/chromeos_version.h" 8 #include "base/chromeos/chromeos_version.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 extensions::ExtensionSystem::Get(profile)->event_router()) { 66 extensions::ExtensionSystem::Get(profile)->event_router()) {
67 scoped_ptr<extensions::Event> event(new extensions::Event( 67 scoped_ptr<extensions::Event> event(new extensions::Event(
68 terminal_private::OnProcessOutput::kEventName, args.Pass())); 68 terminal_private::OnProcessOutput::kEventName, args.Pass()));
69 extensions::ExtensionSystem::Get(profile)->event_router()-> 69 extensions::ExtensionSystem::Get(profile)->event_router()->
70 DispatchEventToExtension(extension_id, event.Pass()); 70 DispatchEventToExtension(extension_id, event.Pass());
71 } 71 }
72 } 72 }
73 73
74 } // namespace 74 } // namespace
75 75
76 namespace extensions {
77
76 TerminalPrivateFunction::TerminalPrivateFunction() {} 78 TerminalPrivateFunction::TerminalPrivateFunction() {}
77 79
78 TerminalPrivateFunction::~TerminalPrivateFunction() {} 80 TerminalPrivateFunction::~TerminalPrivateFunction() {}
79 81
80 bool TerminalPrivateFunction::RunImpl() { 82 bool TerminalPrivateFunction::RunImpl() {
81 return RunTerminalFunction(); 83 return RunTerminalFunction();
82 } 84 }
83 85
84 TerminalPrivateOpenTerminalProcessFunction:: 86 TerminalPrivateOpenTerminalProcessFunction::
85 TerminalPrivateOpenTerminalProcessFunction() : command_(NULL) {} 87 TerminalPrivateOpenTerminalProcessFunction() : command_(NULL) {}
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, 213 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
212 base::Bind(&TerminalPrivateOnTerminalResizeFunction::RespondOnUIThread, 214 base::Bind(&TerminalPrivateOnTerminalResizeFunction::RespondOnUIThread,
213 this, success)); 215 this, success));
214 } 216 }
215 217
216 void TerminalPrivateOnTerminalResizeFunction::RespondOnUIThread(bool success) { 218 void TerminalPrivateOnTerminalResizeFunction::RespondOnUIThread(bool success) {
217 SetResult(new base::FundamentalValue(success)); 219 SetResult(new base::FundamentalValue(success));
218 SendResponse(true); 220 SendResponse(true);
219 } 221 }
222
223 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/terminal/terminal_private_api.h ('k') | chrome/browser/extensions/api/webview/webview_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698