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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // IE toolband implementation. 5 // IE toolband implementation.
6 #ifndef CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ 6 #ifndef CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_
7 #define CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ 7 #define CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> // Must be included AFTER base. 10 #include <atlapp.h> // Must be included AFTER base.
(...skipping 21 matching lines...) Expand all
32 class ToolBand; 32 class ToolBand;
33 class DictionaryValue; 33 class DictionaryValue;
34 class Value; 34 class Value;
35 35
36 typedef IDispEventSimpleImpl<0, ToolBand, &DIID_DIChromeFrameEvents> 36 typedef IDispEventSimpleImpl<0, ToolBand, &DIID_DIChromeFrameEvents>
37 ChromeFrameEvents; 37 ChromeFrameEvents;
38 38
39 typedef IDispEventSimpleImpl<1, ToolBand, &DIID_DWebBrowserEvents2> 39 typedef IDispEventSimpleImpl<1, ToolBand, &DIID_DWebBrowserEvents2>
40 HostingBrowserEvents; 40 HostingBrowserEvents;
41 41
42 // WS_CHILD | WS_VISIBLE | TBSTYLE_TRANSPARENT | CCS_NODIVIDER are critical for
43 // painting toolband background while chrome frame is hidden.
44 // TBSTYLE_TRANSPARENT makes toolbar same color as rest of IE controls.
45 // CCS_NODIVIDER removes line above toolbar.
46 // Rest was copied from IE favorite bar.
47 typedef CWinTraits<WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS |
48 TBSTYLE_TOOLTIPS | TBSTYLE_TRANSPARENT | TBSTYLE_LIST |
49 TBSTYLE_FLAT | CCS_NODIVIDER | CCS_NOPARENTALIGN |
50 CCS_NORESIZE | CCS_TOP, 0> ToolbandWindowTraits;
51
42 // Implements an IE toolband which gets instantiated for every IE browser tab 52 // Implements an IE toolband which gets instantiated for every IE browser tab
43 // and renders by hosting chrome frame as an ActiveX control. 53 // and renders by hosting chrome frame as an ActiveX control.
44 class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>, 54 class ATL_NO_VTABLE ToolBand : public CComObjectRootEx<CComSingleThreadModel>,
45 public CComCoClass<ToolBand, &CLSID_ToolBand>, 55 public CComCoClass<ToolBand, &CLSID_ToolBand>,
46 public IObjectWithSiteImpl<ToolBand>, 56 public IObjectWithSiteImpl<ToolBand>,
47 public IServiceProviderImpl<ToolBand>, 57 public IServiceProviderImpl<ToolBand>,
48 public IChromeFramePrivileged, 58 public IChromeFramePrivileged,
49 public IDeskBand, 59 public IDeskBand,
50 public IPersistStream, 60 public IPersistStream,
51 public ChromeFrameEvents, 61 public ChromeFrameEvents,
52 public HostingBrowserEvents, 62 public HostingBrowserEvents,
53 // WS_CHILD | WS_VISIBLE | TBSTYLE_TRANSPARENT | CCS_NODIVIDER are critical 63 public CWindowImpl<ToolBand, CWindow, ToolbandWindowTraits> {
54 // for painting toolband background while chrome frame is hidden.
55 // TBSTYLE_TRANSPARENT makes toolbar same color as rest of IE controls.
56 // CCS_NODIVIDER removes line above toolbar.
57 // Rest was copied from IE favorite bar.
58 public CWindowImpl<ToolBand, CWindow, CWinTraits<
59 WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS |
60 TBSTYLE_TOOLTIPS | TBSTYLE_TRANSPARENT | TBSTYLE_LIST | TBSTYLE_FLAT |
61 CCS_NODIVIDER | CCS_NOPARENTALIGN | CCS_NORESIZE | CCS_TOP, 0>> {
62 public: 64 public:
63 ToolBand(); 65 ToolBand();
64 ~ToolBand(); 66 ~ToolBand();
65 67
66 // Subclass TOOLBARCLASSNAME to use TBSTYLE_TRANSPARENT. 68 // Subclass TOOLBARCLASSNAME to use TBSTYLE_TRANSPARENT.
67 DECLARE_WND_SUPERCLASS(NULL, TOOLBARCLASSNAME) 69 DECLARE_WND_SUPERCLASS(NULL, TOOLBARCLASSNAME)
68 70
69 DECLARE_REGISTRY_RESOURCEID_EX(IDR_TOOL_BAND) 71 DECLARE_REGISTRY_RESOURCEID_EX(IDR_TOOL_BAND)
70 BEGIN_REGISTRY_MAP(ToolBand) 72 BEGIN_REGISTRY_MAP(ToolBand)
71 REGMAP_UUID("CLSID", CLSID_ToolBand) 73 REGMAP_UUID("CLSID", CLSID_ToolBand)
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 static _ATL_FUNC_INFO handler_type_long_; 293 static _ATL_FUNC_INFO handler_type_long_;
292 static _ATL_FUNC_INFO handler_type_idispatch_bstr_; 294 static _ATL_FUNC_INFO handler_type_idispatch_bstr_;
293 static _ATL_FUNC_INFO handler_type_bstr_i4_; 295 static _ATL_FUNC_INFO handler_type_bstr_i4_;
294 static _ATL_FUNC_INFO handler_type_bstrarray_; 296 static _ATL_FUNC_INFO handler_type_bstrarray_;
295 static _ATL_FUNC_INFO handler_type_idispatch_variantref_; 297 static _ATL_FUNC_INFO handler_type_idispatch_variantref_;
296 298
297 DISALLOW_COPY_AND_ASSIGN(ToolBand); 299 DISALLOW_COPY_AND_ASSIGN(ToolBand);
298 }; 300 };
299 301
300 #endif // CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ 302 #endif // CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_
OLDNEW
« 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