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

Unified Diff: extensions/shell/browser/api/shell_window/shell_window_api.cc

Issue 686983002: Add idl for managing focus in app_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: extensions/shell/browser/api/shell_window/shell_window_api.cc
diff --git a/extensions/shell/browser/api/shell_window/shell_window_api.cc b/extensions/shell/browser/api/shell_window/shell_window_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9878104aa76febdd3146c5823b8326aec57ff1a0
--- /dev/null
+++ b/extensions/shell/browser/api/shell_window/shell_window_api.cc
@@ -0,0 +1,52 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/shell/browser/api/shell_window/shell_window_api.h"
+
+#include "base/logging.h"
+#include "extensions/shell/common/api/shell_window.h"
+
+namespace shell_window = extensions::shell::api::shell_window;
+
+namespace extensions {
+
+ShellWindowRequestHideFunction::ShellWindowRequestHideFunction() {
+}
+
+ShellWindowRequestHideFunction::~ShellWindowRequestHideFunction() {
+}
+
+ExtensionFunction::ResponseAction ShellWindowRequestHideFunction::Run() {
+ // TODO(zork): Implement this.
+ return RespondNow(NoArguments());
+}
+
+ShellWindowRequestShowFunction::ShellWindowRequestShowFunction() {
+}
+
+ShellWindowRequestShowFunction::~ShellWindowRequestShowFunction() {
+}
+
+ExtensionFunction::ResponseAction ShellWindowRequestShowFunction::Run() {
+ // TODO(zork): Implement this.
+ return RespondNow(NoArguments());
+}
+
+ShellWindowShowAppFunction::ShellWindowShowAppFunction() {
+}
+
+ShellWindowShowAppFunction::~ShellWindowShowAppFunction() {
+}
+
+ExtensionFunction::ResponseAction ShellWindowShowAppFunction::Run() {
+ // Get parameters
+ scoped_ptr<shell_window::ShowApp::Params> params(
+ shell_window::ShowApp::Params::Create(*args_));
+ EXTENSION_FUNCTION_VALIDATE(params.get());
+
+ // TODO(zork): Implement this.
+ return RespondNow(NoArguments());
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698