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

Side by Side Diff: ppapi/cpp/fullscreen.h

Issue 9018032: New CPP docs for mouse lock and fullscreen. The docs are identical to those found in the C IDL wi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | ppapi/cpp/mouse_lock.h » ('j') | ppapi/cpp/mouse_lock.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_CPP_FULLSCREEN_H_ 5 #ifndef PPAPI_CPP_FULLSCREEN_H_
6 #define PPAPI_CPP_FULLSCREEN_H_ 6 #define PPAPI_CPP_FULLSCREEN_H_
7 7
8 /// @file
9 /// This file defines the API for handling transitions of a module instance to
10 /// and from fullscreen mode.
11
8 namespace pp { 12 namespace pp {
9 13
10 class Instance; 14 class Instance;
11 class Size; 15 class Size;
12 16
17 /// The Fullscreen class allowing you to check and toggle fullscreen mode.
13 class Fullscreen { 18 class Fullscreen {
14 public: 19 public:
20 /// A constructor for creating a <code>Fullscreen</code>.
21 ///
22 /// @param[in] instance The instance that will own the new
23 /// <code>Fullscreen</code>.
15 Fullscreen(Instance* instance); 24 Fullscreen(Instance* instance);
25
26 /// Destructor.
yzshen1 2011/12/21 23:04:14 Comment like this (as well as the one for construc
jond 2012/01/03 17:48:28 Yeah, I realize that, but I think for sake of havi
yzshen1 2012/01/03 18:06:26 IMHO, I think it is the better to remove it. The r
16 virtual ~Fullscreen(); 27 virtual ~Fullscreen();
17 28
18 // PPB_Fullscreen methods. 29 /// IsFullscreen() checks whether the module instance is currently in
30 /// fullscreen mode.
31 ///
32 /// @return <code>true</code> if the module instance is in fullscreen mode,
33 ///<code>false</code> if the module instance is not in fullscreen mode.
19 bool IsFullscreen(); 34 bool IsFullscreen();
35
36 /// SetFullscreen() switches the module instance to and from fullscreen
37 /// mode.
38 ///
39 /// The transition to and from fullscreen mode is asynchronous. During the
40 /// transition, IsFullscreen() will return the previous value and
41 /// no 2D or 3D device can be bound. The transition ends at DidChangeView()
42 /// when IsFullscreen() returns the new value. You might receive other
43 /// DidChangeView() calls while in transition.
44 ///
45 /// The transition to fullscreen mode can only occur while the browser is
46 /// processing a user gesture, even if <code>true</code> is returned.
47 ///
48 /// @param[in] fullscreen <code>true</code> to enter fullscreen mode, or
49 /// <code>false</code> to exit fullscreen mode.
50 ///
51 ///@return <code>true</code> on success or <code>false</code> on
52 /// failure.
20 bool SetFullscreen(bool fullscreen); 53 bool SetFullscreen(bool fullscreen);
54
55 /// GetScreenSize() gets the size of the screen in pixels. The module instance
56 /// will be resized to this size when SetFullscreen() is called to enter
57 /// fullscreen mode.
58 ///
59 /// @param[out] size The size of the entire screen in pixels.
60 ///
61 /// @return <code>false</code> on success or <code>false</code> on
yzshen1 2011/12/21 23:04:14 *true* on success
jond 2012/01/03 17:48:28 Done.
62 /// failure.
21 bool GetScreenSize(Size* size); 63 bool GetScreenSize(Size* size);
22 64
23 private: 65 private:
24 Instance* instance_; 66 Instance* instance_;
25 }; 67 };
26 68
27 } // namespace pp 69 } // namespace pp
28 70
29 #endif // PPAPI_CPP_FULLSCREEN_H_ 71 #endif // PPAPI_CPP_FULLSCREEN_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/mouse_lock.h » ('j') | ppapi/cpp/mouse_lock.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698