Typedef for readability.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6281003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71493 0039d316-1c4b-4281-b951-d872f2087c98
parent 229ab9c2
...@@ -39,6 +39,16 @@ typedef IDispEventSimpleImpl<0, ToolBand, &DIID_DIChromeFrameEvents> ...@@ -39,6 +39,16 @@ typedef IDispEventSimpleImpl<0, ToolBand, &DIID_DIChromeFrameEvents>
typedef IDispEventSimpleImpl<1, ToolBand, &DIID_DWebBrowserEvents2> typedef IDispEventSimpleImpl<1, ToolBand, &DIID_DWebBrowserEvents2>
HostingBrowserEvents; HostingBrowserEvents;
// WS_CHILD | WS_VISIBLE | TBSTYLE_TRANSPARENT | CCS_NODIVIDER are critical for
// painting toolband background while chrome frame is hidden.
// TBSTYLE_TRANSPARENT makes toolbar same color as rest of IE controls.
// CCS_NODIVIDER removes line above toolbar.
// Rest was copied from IE favorite bar.
typedef CWinTraits<WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS |
TBSTYLE_TOOLTIPS | TBSTYLE_TRANSPARENT | TBSTYLE_LIST |
TBSTYLE_FLAT | CCS_NODIVIDER | CCS_NOPARENTALIGN |
CCS_NORESIZE | CCS_TOP, 0> ToolbandWindowTraits;
// Implements an IE toolband which gets instantiated for every IE browser tab // Implements an IE toolband which gets instantiated for every IE browser tab
// and renders by hosting chrome frame as an ActiveX control. // and renders by hosting chrome frame as an ActiveX control.
class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>, class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>,
...@@ -50,15 +60,7 @@ class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>, ...@@ -50,15 +60,7 @@ class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>,
public IPersistStream, public IPersistStream,
public ChromeFrameEvents, public ChromeFrameEvents,
public HostingBrowserEvents, public HostingBrowserEvents,
// WS_CHILD | WS_VISIBLE | TBSTYLE_TRANSPARENT | CCS_NODIVIDER are critical public CWindowImpl<ToolBand, CWindow, ToolbandWindowTraits> {
// for painting toolband background while chrome frame is hidden.
// TBSTYLE_TRANSPARENT makes toolbar same color as rest of IE controls.
// CCS_NODIVIDER removes line above toolbar.
// Rest was copied from IE favorite bar.
public CWindowImpl<ToolBand, CWindow, CWinTraits<
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS |
TBSTYLE_TOOLTIPS | TBSTYLE_TRANSPARENT | TBSTYLE_LIST | TBSTYLE_FLAT |
CCS_NODIVIDER | CCS_NOPARENTALIGN | CCS_NORESIZE | CCS_TOP, 0>> {
public: public:
ToolBand(); ToolBand();
~ToolBand(); ~ToolBand();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment