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

Side by Side Diff: ceee/ie/plugin/toolband/tool_band.cc

Issue 4563001: Adding a privileged callback used in IE CF to check whether to show... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « ceee/ie/plugin/toolband/tool_band.h ('k') | ceee/ie/plugin/toolband/toolband.gyp » ('j') | 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 #include "ceee/ie/plugin/toolband/tool_band.h" 6 #include "ceee/ie/plugin/toolband/tool_band.h"
7 7
8 #include <atlsafe.h> 8 #include <atlsafe.h>
9 #include <atlstr.h> 9 #include <atlstr.h>
10 #include <shlguid.h> 10 #include <shlguid.h>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 *profile_name = ::SysAllocString( 227 *profile_name = ::SysAllocString(
228 ceee_module_util::GetBrokerProfileNameForIe()); 228 ceee_module_util::GetBrokerProfileNameForIe());
229 return S_OK; 229 return S_OK;
230 } 230 }
231 231
232 STDMETHODIMP ToolBand::GetExtensionApisToAutomate(BSTR* functions_enabled) { 232 STDMETHODIMP ToolBand::GetExtensionApisToAutomate(BSTR* functions_enabled) {
233 *functions_enabled = NULL; 233 *functions_enabled = NULL;
234 return S_FALSE; 234 return S_FALSE;
235 } 235 }
236 236
237 STDMETHODIMP ToolBand::ShouldShowVersionMismatchDialog() {
238 // Only the toolband shows the warning dialog, meaning it gets shown once
239 // per tab.
240 return S_OK;
241 }
242
237 HRESULT ToolBand::Initialize(IUnknown* site) { 243 HRESULT ToolBand::Initialize(IUnknown* site) {
238 TRACE_EVENT_INSTANT("ceee.toolband.initialize", this, ""); 244 TRACE_EVENT_INSTANT("ceee.toolband.initialize", this, "");
239 245
240 CComQIPtr<IServiceProvider> service_provider = site; 246 CComQIPtr<IServiceProvider> service_provider = site;
241 DCHECK(service_provider); 247 DCHECK(service_provider);
242 if (service_provider == NULL) { 248 if (service_provider == NULL) {
243 return E_FAIL; 249 return E_FAIL;
244 } 250 }
245 251
246 HRESULT hr = InitializeAndShowWindow(site); 252 HRESULT hr = InitializeAndShowWindow(site);
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 return own_line_flag_; 625 return own_line_flag_;
620 } 626 }
621 627
622 void ToolBand::ClearForceOwnLineFlag() { 628 void ToolBand::ClearForceOwnLineFlag() {
623 if (own_line_flag_ || !already_checked_own_line_flag_) { 629 if (own_line_flag_ || !already_checked_own_line_flag_) {
624 own_line_flag_ = false; 630 own_line_flag_ = false;
625 already_checked_own_line_flag_ = true; 631 already_checked_own_line_flag_ = true;
626 ceee_module_util::SetOptionToolbandForceReposition(false); 632 ceee_module_util::SetOptionToolbandForceReposition(false);
627 } 633 }
628 } 634 }
OLDNEW
« no previous file with comments | « ceee/ie/plugin/toolband/tool_band.h ('k') | ceee/ie/plugin/toolband/toolband.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698