OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/find_dialog.h" | 5 #include "chrome_frame/find_dialog.h" |
6 | 6 |
7 #include <richedit.h> | 7 #include <richedit.h> |
8 | 8 |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome_frame/chrome_frame_automation.h" | 11 #include "chrome_frame/chrome_frame_automation.h" |
12 | 12 |
13 const int kMaxFindChars = 1024; | 13 const int kMaxFindChars = 1024; |
14 | 14 |
15 HHOOK CFFindDialog::msg_hook_ = NULL; | 15 HHOOK CFFindDialog::msg_hook_ = NULL; |
16 | 16 |
17 CFFindDialog::CFFindDialog() {} | 17 CFFindDialog::CFFindDialog() {} |
18 | 18 |
19 void CFFindDialog::Init(ChromeFrameAutomationClient* automation_client) { | 19 void CFFindDialog::Init(ChromeFrameAutomationClient* automation_client) { |
20 automation_client_ = automation_client; | 20 automation_client_ = automation_client; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 | 112 |
113 bool CFFindDialog::UninstallMessageHook() { | 113 bool CFFindDialog::UninstallMessageHook() { |
114 DCHECK(msg_hook_ != NULL); | 114 DCHECK(msg_hook_ != NULL); |
115 BOOL result = ::UnhookWindowsHookEx(msg_hook_); | 115 BOOL result = ::UnhookWindowsHookEx(msg_hook_); |
116 DCHECK(result); | 116 DCHECK(result); |
117 msg_hook_ = NULL; | 117 msg_hook_ = NULL; |
118 | 118 |
119 return result != FALSE; | 119 return result != FALSE; |
120 } | 120 } |
OLD | NEW |