Skip to content

Commit 556750e

Browse files
cefclient: Fix/improve source code documentation (issue #1500).
git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk/cef3@2019 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
1 parent 9daf3b2 commit 556750e

13 files changed

+31
-24
lines changed

tests/cefclient/browser/binding_test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace client {
1212
namespace binding_test {
1313

14-
// Handler creation.
14+
// Create message handlers. Called from test_runner.cc.
1515
void CreateMessageHandlers(test_runner::MessageHandlerSet& handlers);
1616

1717
} // namespace binding_test

tests/cefclient/browser/browser_window.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ namespace client {
1818
// indicated.
1919
class BrowserWindow : public ClientHandler::Delegate {
2020
public:
21-
// This interface is implemented by the owner of the BrowserWindowWin. The
21+
// This interface is implemented by the owner of the BrowserWindow. The
2222
// methods of this class will be called on the main thread.
2323
class Delegate {
2424
public:
2525
// Called when the browser has been created.
2626
virtual void OnBrowserCreated(CefRefPtr<CefBrowser> browser) = 0;
2727

28-
// Called when the BrowserWindowWin has been destroyed.
28+
// Called when the BrowserWindow has been destroyed.
2929
virtual void OnBrowserWindowDestroyed() = 0;
3030

3131
// Set the window URL address.
@@ -88,7 +88,7 @@ class BrowserWindow : public ClientHandler::Delegate {
8888
friend struct base::DefaultDeleter<BrowserWindow>;
8989

9090
// Constructor may be called on any thread.
91-
// |root_window| and |delegate| must outlive this object.
91+
// |delegate| must outlive this object.
9292
explicit BrowserWindow(Delegate* delegate);
9393

9494
// ClientHandler::Delegate methods.

tests/cefclient/browser/client_app_browser.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ class ClientAppBrowser : public ClientApp,
3737
ClientAppBrowser();
3838

3939
private:
40-
// Creates all of the Delegate objects. Implemented in
41-
// client_app_delegates.
40+
// Creates all of the Delegate objects. Implemented by cefclient in
41+
// client_app_delegates_browser.cc
4242
static void CreateDelegates(DelegateSet& delegates);
4343

44-
// Create the Linux print handler. Implemented in client_app_delegates.
44+
// Create the Linux print handler. Implemented by cefclient in
45+
// client_app_delegates_browser.cc
4546
static CefRefPtr<CefPrintHandler> CreatePrintHandler();
4647

4748
// CefApp methods.

tests/cefclient/browser/dialog_test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace client {
1212
namespace dialog_test {
1313

14-
/// Handler creation.
14+
// Create message handlers. Called from test_runner.cc.
1515
void CreateMessageHandlers(test_runner::MessageHandlerSet& handlers);
1616

1717
} // namespace dialog_test

tests/cefclient/browser/root_window.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class RootWindow :
5353
static scoped_refptr<RootWindow> GetForNSWindow(NSWindow* window);
5454
#endif
5555

56-
// Initialize as a normal window. This will create and show a browser window.
57-
// This method may be called on any thread.
56+
// Initialize as a normal window. This will create and show a native window
57+
// hosting a single browser instance. This method may be called on any thread.
5858
// |delegate| must be non-NULL and outlive this object.
5959
// Use RootWindowManager::CreateRootWindow() instead of calling this method
6060
// directly.
@@ -65,10 +65,10 @@ class RootWindow :
6565
const CefBrowserSettings& settings,
6666
const std::string& url) = 0;
6767

68-
// Initialize as a popup window. This is used to attach a browser window that
69-
// will be created later. The window will be shown once the browser is
70-
// available. This method may be called on any thread.
71-
// |delegate| must be non-NULL and outlive this object.
68+
// Initialize as a popup window. This is used to attach a new native window to
69+
// a single browser instance that will be created later. The native window
70+
// will be created and shown once the browser is available. This method may be
71+
// called on any thread. |delegate| must be non-NULL and outlive this object.
7272
// Use RootWindowManager::CreateRootWindowAsPopup() instead of calling this
7373
// method directly.
7474
virtual void InitAsPopup(RootWindow::Delegate* delegate,
@@ -101,7 +101,7 @@ class RootWindow :
101101
// Returns the browser that this window contains, if any.
102102
virtual CefRefPtr<CefBrowser> GetBrowser() const = 0;
103103

104-
// Returns the handle for this window, if any.
104+
// Returns the native handle for this window, if any.
105105
virtual ClientWindowHandle GetWindowHandle() const = 0;
106106

107107
protected:

tests/cefclient/browser/root_window_manager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RootWindowManager : public RootWindow::Delegate {
2626
// Create a new top-level native window that loads |url|.
2727
// If |with_controls| is true the window will show controls.
2828
// If |with_osr| is true the window will use off-screen rendering.
29-
// If |bounds| is empty the default window size will be used.
29+
// If |bounds| is empty the default window size and location will be used.
3030
// This method can be called from anywhere to create a new top-level window.
3131
scoped_refptr<RootWindow> CreateRootWindow(
3232
bool with_controls,

tests/cefclient/browser/scheme_test.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
namespace client {
1010
namespace scheme_test {
1111

12-
// Create the scheme handler. Called from both the browser and renderer process.
12+
// Create and register the custom scheme handler. See
13+
// common/scheme_handler_common.h for registration of the custom scheme
14+
// name/type which must occur in all processes. Called from test_runner.cc.
1315
void RegisterSchemeHandlers();
1416

1517
} // namespace scheme_test

tests/cefclient/browser/window_test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace client {
1212
namespace window_test {
1313

14-
/// Handler creation.
14+
// Create message handlers. Called from test_runner.cc.
1515
void CreateMessageHandlers(test_runner::MessageHandlerSet& handlers);
1616

1717
// Fit |window| inside |display|. Coordinates are relative to the upper-left

tests/cefclient/common/client_app.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class ClientApp : public CefApp {
3232
std::vector<CefString> cookieable_schemes_;
3333

3434
private:
35-
// Registers custom schemes. Implemented in client_app_delegates.
35+
// Registers custom schemes. Implemented by cefclient in
36+
// client_app_delegates_common.cc
3637
static void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar,
3738
std::vector<CefString>& cookiable_schemes);
3839

tests/cefclient/common/scheme_test_common.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
namespace client {
1414
namespace scheme_test {
1515

16-
// Register the scheme.
16+
// Register the custom scheme name/type. This must be done in all processes.
17+
// See browser/scheme_test.h for creation/registration of the custom scheme
18+
// handler which only occurs in the browser process. Called from
19+
// client_app_delegates_common.cc.
1720
void RegisterCustomSchemes(CefRefPtr<CefSchemeRegistrar> registrar,
1821
std::vector<CefString>& cookiable_schemes);
1922

tests/cefclient/renderer/client_app_renderer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ class ClientAppRenderer : public ClientApp,
8686
ClientAppRenderer();
8787

8888
private:
89-
// Creates all of the Delegate objects. Implemented in
90-
// client_app_delegates.
89+
// Creates all of the Delegate objects. Implemented by cefclient in
90+
// client_app_delegates_renderer.cc
9191
static void CreateDelegates(DelegateSet& delegates);
9292

9393
// CefApp methods.

tests/cefclient/renderer/client_renderer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace client {
1313
namespace renderer {
1414

15-
// Create the render delegate.
15+
// Create the renderer delegate. Called from client_app_delegates_renderer.cc.
1616
void CreateDelegates(ClientAppRenderer::DelegateSet& delegates);
1717

1818
} // namespace renderer

tests/cefclient/renderer/performance_test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace client {
1212
namespace performance_test {
1313

14-
// Render delegate creation. Called from client_app_delegates.cc.
14+
// Create the renderer delegate. Called from client_app_delegates_renderer.cc.
1515
void CreateDelegates(ClientAppRenderer::DelegateSet& delegates);
1616

1717
} // namespace performance_test

0 commit comments

Comments
 (0)