| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome_frame/bho_loader.h" | 5 #include "chrome_frame/bho_loader.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcomcli.h> | 8 #include <atlcomcli.h> |
| 9 #include <exdisp.h> | 9 #include <exdisp.h> |
| 10 | 10 |
| 11 #include "chrome_frame/chrome_frame_helper_util.h" | 11 #include "chrome_frame/chrome_frame_helper_util.h" |
| 12 #include "chrome_frame/chrome_tab.h" |
| 12 #include "chrome_frame/event_hooker.h" | 13 #include "chrome_frame/event_hooker.h" |
| 13 #include "chrome_tab.h" // NOLINT | |
| 14 | 14 |
| 15 | 15 |
| 16 // Describes the window class we look for. | 16 // Describes the window class we look for. |
| 17 const wchar_t kStatusBarWindowClass[] = L"msctls_statusbar32"; | 17 const wchar_t kStatusBarWindowClass[] = L"msctls_statusbar32"; |
| 18 | 18 |
| 19 // On IE9, the status bar is disabled by default, so we look for an | 19 // On IE9, the status bar is disabled by default, so we look for an |
| 20 // AsyncBoundaryLayer window instead. | 20 // AsyncBoundaryLayer window instead. |
| 21 const wchar_t kAsyncBoundaryDnWindow[] = L"asynclayerboundarydn\0"; | 21 const wchar_t kAsyncBoundaryDnWindow[] = L"asynclayerboundarydn\0"; |
| 22 | 22 |
| 23 BHOLoader::BHOLoader() : hooker_(new EventHooker()) { | 23 BHOLoader::BHOLoader() : hooker_(new EventHooker()) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 void BHOLoader::StopHook() { | 125 void BHOLoader::StopHook() { |
| 126 hooker_->StopHook(); | 126 hooker_->StopHook(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 BHOLoader* BHOLoader::GetInstance() { | 129 BHOLoader* BHOLoader::GetInstance() { |
| 130 static BHOLoader loader; | 130 static BHOLoader loader; |
| 131 return &loader; | 131 return &loader; |
| 132 } | 132 } |
| OLD | NEW |