| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "ceee/common/com_utils.h" | 16 #include "ceee/common/com_utils.h" |
| 17 #include "ceee/common/window_utils.h" | 17 #include "ceee/common/window_utils.h" |
| 18 #include "ceee/common/windows_constants.h" | 18 #include "ceee/common/windows_constants.h" |
| 19 #include "ceee/ie/common/extension_manifest.h" | 19 #include "ceee/ie/common/extension_manifest.h" |
| 20 #include "ceee/ie/common/ceee_module_util.h" | 20 #include "ceee/ie/common/ceee_module_util.h" |
| 21 #include "ceee/ie/plugin/bho/tool_band_visibility.h" | 21 #include "ceee/ie/plugin/bho/tool_band_visibility.h" |
| 22 #include "chrome/common/automation_constants.h" |
| 22 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/test/automation/automation_constants.h" | |
| 24 #include "chrome_frame/com_message_event.h" | 24 #include "chrome_frame/com_message_event.h" |
| 25 | 25 |
| 26 _ATL_FUNC_INFO ToolBand::handler_type_idispatch_ = | 26 _ATL_FUNC_INFO ToolBand::handler_type_idispatch_ = |
| 27 { CC_STDCALL, VT_EMPTY, 1, { VT_DISPATCH } }; | 27 { CC_STDCALL, VT_EMPTY, 1, { VT_DISPATCH } }; |
| 28 _ATL_FUNC_INFO ToolBand::handler_type_long_ = | 28 _ATL_FUNC_INFO ToolBand::handler_type_long_ = |
| 29 { CC_STDCALL, VT_EMPTY, 1, { VT_I4 } }; | 29 { CC_STDCALL, VT_EMPTY, 1, { VT_I4 } }; |
| 30 _ATL_FUNC_INFO ToolBand::handler_type_idispatch_bstr_ = | 30 _ATL_FUNC_INFO ToolBand::handler_type_idispatch_bstr_ = |
| 31 { CC_STDCALL, VT_EMPTY, 2, { VT_DISPATCH, VT_BSTR } }; | 31 { CC_STDCALL, VT_EMPTY, 2, { VT_DISPATCH, VT_BSTR } }; |
| 32 _ATL_FUNC_INFO ToolBand::handler_type_bstr_i4_= | 32 _ATL_FUNC_INFO ToolBand::handler_type_bstr_i4_= |
| 33 { CC_STDCALL, VT_EMPTY, 2, { VT_BSTR, VT_I4 } }; | 33 { CC_STDCALL, VT_EMPTY, 2, { VT_BSTR, VT_I4 } }; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 return own_line_flag_; | 625 return own_line_flag_; |
| 626 } | 626 } |
| 627 | 627 |
| 628 void ToolBand::ClearForceOwnLineFlag() { | 628 void ToolBand::ClearForceOwnLineFlag() { |
| 629 if (own_line_flag_ || !already_checked_own_line_flag_) { | 629 if (own_line_flag_ || !already_checked_own_line_flag_) { |
| 630 own_line_flag_ = false; | 630 own_line_flag_ = false; |
| 631 already_checked_own_line_flag_ = true; | 631 already_checked_own_line_flag_ = true; |
| 632 ceee_module_util::SetOptionToolbandForceReposition(false); | 632 ceee_module_util::SetOptionToolbandForceReposition(false); |
| 633 } | 633 } |
| 634 } | 634 } |
| OLD | NEW |