summaryrefslogtreecommitdiffstats
path: root/ceee
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:45:45 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:45:45 +0000
commitdfc3565886b90b6d5b0cae3f8e48f602d3293cf5 (patch)
tree23e1a36f0d10af5062082cf3a21e0b74d36aaa4f /ceee
parent229ab9c282cff7bfb6b239a0df0dafec81e30d28 (diff)
downloadchromium_src-dfc3565886b90b6d5b0cae3f8e48f602d3293cf5.zip
chromium_src-dfc3565886b90b6d5b0cae3f8e48f602d3293cf5.tar.gz
chromium_src-dfc3565886b90b6d5b0cae3f8e48f602d3293cf5.tar.bz2
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
Diffstat (limited to 'ceee')
-rw-r--r--ceee/ie/plugin/toolband/tool_band.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/ceee/ie/plugin/toolband/tool_band.h b/ceee/ie/plugin/toolband/tool_band.h
index 38ccab4..f50fb6b 100644
--- a/ceee/ie/plugin/toolband/tool_band.h
+++ b/ceee/ie/plugin/toolband/tool_band.h
@@ -39,6 +39,16 @@ typedef IDispEventSimpleImpl<0, ToolBand, &DIID_DIChromeFrameEvents>
typedef IDispEventSimpleImpl<1, ToolBand, &DIID_DWebBrowserEvents2>
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
// and renders by hosting chrome frame as an ActiveX control.
class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>,
@@ -50,15 +60,7 @@ class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>,
public IPersistStream,
public ChromeFrameEvents,
public 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.
- 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 CWindowImpl<ToolBand, CWindow, ToolbandWindowTraits> {
public:
ToolBand();
~ToolBand();