From 1b274a1fd69d204bbfa63c8c3e4667a3b157bcde Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 10 Jun 2014 12:44:30 +0800 Subject: [PATCH] Add comments on the usage of attached devtools. --- .../browser/win/inspectable_web_contents_view_win.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/brightray/browser/win/inspectable_web_contents_view_win.h b/brightray/browser/win/inspectable_web_contents_view_win.h index e55bbaac090..5f1321ae418 100644 --- a/brightray/browser/win/inspectable_web_contents_view_win.h +++ b/brightray/browser/win/inspectable_web_contents_view_win.h @@ -23,7 +23,16 @@ class InspectableWebContentsViewWin : public InspectableWebContentsView { InspectableWebContentsImpl* inspectable_web_contents_impl); ~InspectableWebContentsViewWin(); + // Returns the container control, which has devtools view attached. Unlike + // GetNativeView(), this returns a views::View instead of HWND, and can only + // be used by applications that use the views library, if you don't use the + // views library, you probably want to set dock side to "undocked" before + // showing the devtools, because devtools is showed attached by default and + // attached devtools is currently only supported when using views library. views::View* GetView() const; + + // Returns the web view control, which can be used by the + // GetInitiallyFocusedView() to set initial focus to web view. views::View* GetWebView() const; virtual gfx::NativeView GetNativeView() const OVERRIDE;