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

Side by Side Diff: chrome_frame/find_dialog.cc

Issue 113143006: Add base:: to string16 in chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chrome_frame/find_dialog.h ('k') | chrome_frame/metrics_service.cc » ('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) 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/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 17 matching lines...) Expand all
28 // message that triggers a ViewMsg_StopFinding. 28 // message that triggers a ViewMsg_StopFinding.
29 std::string guid(base::GenerateGUID()); 29 std::string guid(base::GenerateGUID());
30 automation_client_->FindInPage(ASCIIToWide(guid), FWD, CASE_SENSITIVE, false); 30 automation_client_->FindInPage(ASCIIToWide(guid), FWD, CASE_SENSITIVE, false);
31 31
32 UninstallMessageHook(); 32 UninstallMessageHook();
33 return 0; 33 return 0;
34 } 34 }
35 35
36 LRESULT CFFindDialog::OnFind(WORD wNotifyCode, WORD wID, HWND hWndCtl, 36 LRESULT CFFindDialog::OnFind(WORD wNotifyCode, WORD wID, HWND hWndCtl,
37 BOOL& bHandled) { 37 BOOL& bHandled) {
38 string16 find_text(kMaxFindChars, L'\0'); 38 base::string16 find_text(kMaxFindChars, L'\0');
39 find_text.resize(GetDlgItemText(IDC_FIND_TEXT, &find_text[0], kMaxFindChars)); 39 find_text.resize(GetDlgItemText(IDC_FIND_TEXT, &find_text[0], kMaxFindChars));
40 40
41 // Repeated searches for the same string should move to the next instance. 41 // Repeated searches for the same string should move to the next instance.
42 bool find_next = (find_text == last_find_text_); 42 bool find_next = (find_text == last_find_text_);
43 if (!find_next) 43 if (!find_next)
44 last_find_text_ = find_text; 44 last_find_text_ = find_text;
45 45
46 bool match_case = IsDlgButtonChecked(IDC_MATCH_CASE) == BST_CHECKED; 46 bool match_case = IsDlgButtonChecked(IDC_MATCH_CASE) == BST_CHECKED;
47 bool search_down = IsDlgButtonChecked(IDC_DIRECTION_DOWN) == BST_CHECKED; 47 bool search_down = IsDlgButtonChecked(IDC_DIRECTION_DOWN) == BST_CHECKED;
48 48
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome_frame/find_dialog.h ('k') | chrome_frame/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698