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

Unified Diff: ceee/ie/plugin/toolband/tool_band.h

Issue 6281003: Typedef for readability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/plugin/toolband/tool_band.h
===================================================================
--- ceee/ie/plugin/toolband/tool_band.h (revision 71442)
+++ ceee/ie/plugin/toolband/tool_band.h (working copy)
@@ -39,6 +39,16 @@
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 @@
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698