OLD | NEW |
---|---|
(Empty) | |
1 // 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.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/logging.h" | |
6 #include "chrome/browser/platform_util.h" | |
7 | |
8 namespace platform_util { | |
9 | |
10 // TODO: crbug/115682 to track implementation of the following methods. | |
11 | |
12 // Show the given file in a file manager. If possible, select the file. | |
13 void ShowItemInFolder(const FilePath& full_path) { | |
14 NOTIMPLEMENTED(); | |
15 } | |
16 | |
17 // Open the given file in the desktop's default manner. | |
18 void OpenItem(const FilePath& full_path) { | |
19 NOTIMPLEMENTED(); | |
20 } | |
21 | |
22 // Open the given external protocol URL in the desktop's default manner. | |
23 // (For example, mailto: URLs in the default mail user agent.) | |
24 void OpenExternal(const GURL& url) { | |
25 NOTIMPLEMENTED(); | |
26 } | |
27 | |
28 // Get the top level window for the native view. This can return NULL. | |
29 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { | |
30 NOTIMPLEMENTED(); | |
31 return view; | |
32 } | |
33 | |
34 // Get the direct parent of |view|, may return NULL. | |
35 gfx::NativeView GetParent(gfx::NativeView view) { | |
36 NOTIMPLEMENTED(); | |
37 return view; | |
38 } | |
39 | |
40 // Returns true if |window| is the foreground top level window. | |
41 bool IsWindowActive(gfx::NativeWindow window) { | |
42 NOTIMPLEMENTED(); | |
43 return false; | |
44 } | |
45 | |
46 // Activate the window, bringing it to the foreground top level. | |
47 void ActivateWindow(gfx::NativeWindow window) { | |
48 NOTIMPLEMENTED(); | |
49 } | |
50 | |
51 // Returns true if the view is visible. The exact definition of this is | |
52 // platform-specific, but it is generally not "visible to the user", rather | |
53 // whether the view has the visible attribute set. | |
54 bool IsVisible(gfx::NativeView view) { | |
55 NOTIMPLEMENTED(); | |
56 return true; | |
57 } | |
58 | |
59 } // namespace platform_util | |
60 | |
OLD | NEW |