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

Unified Diff: chrome/browser/platform_util_android.cc

Issue 9464024: Adding the android specific platorm_util file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_android.cc
diff --git a/chrome/browser/platform_util_android.cc b/chrome/browser/platform_util_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..893716927eb36960a4439504ea0983da3716681e
--- /dev/null
+++ b/chrome/browser/platform_util_android.cc
@@ -0,0 +1,60 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
Yaron 2012/02/24 20:34:22 2012
Ramya 2012/02/24 21:59:42 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/logging.h"
+#include "chrome/browser/platform_util.h"
+
+namespace platform_util {
+
+// TODO: crbug/115682 to track implementation of the following methods.
+
+// Show the given file in a file manager. If possible, select the file.
+void ShowItemInFolder(const FilePath& full_path) {
+ NOTIMPLEMENTED();
+}
+
+// Open the given file in the desktop's default manner.
+void OpenItem(const FilePath& full_path) {
+ NOTIMPLEMENTED();
+}
+
+// Open the given external protocol URL in the desktop's default manner.
+// (For example, mailto: URLs in the default mail user agent.)
+void OpenExternal(const GURL& url) {
+ NOTIMPLEMENTED();
+}
+
+// Get the top level window for the native view. This can return NULL.
+gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
+ NOTIMPLEMENTED();
+ return view;
+}
+
+// Get the direct parent of |view|, may return NULL.
+gfx::NativeView GetParent(gfx::NativeView view) {
+ NOTIMPLEMENTED();
+ return view;
+}
+
+// Returns true if |window| is the foreground top level window.
+bool IsWindowActive(gfx::NativeWindow window) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+// Activate the window, bringing it to the foreground top level.
+void ActivateWindow(gfx::NativeWindow window) {
+ NOTIMPLEMENTED();
+}
+
+// Returns true if the view is visible. The exact definition of this is
+// platform-specific, but it is generally not "visible to the user", rather
+// whether the view has the visible attribute set.
+bool IsVisible(gfx::NativeView view) {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+} // namespace platform_util
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698