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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 7321001: Changes SearchProvider to set the description of the first consecutive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DCHECK Created 9 years, 5 months 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/browser/search_engines/template_url_service.h ('k') | no next file » | 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) 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/browser/ui/views/omnibox/omnibox_view_win.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <locale> 8 #include <locale>
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/win/iat_patch_function.h" 21 #include "base/win/iat_patch_function.h"
22 #include "chrome/app/chrome_command_ids.h" 22 #include "chrome/app/chrome_command_ids.h"
23 #include "chrome/browser/autocomplete/autocomplete_accessibility.h" 23 #include "chrome/browser/autocomplete/autocomplete_accessibility.h"
24 #include "chrome/browser/autocomplete/autocomplete_match.h" 24 #include "chrome/browser/autocomplete/autocomplete_match.h"
25 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 25 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
26 #include "chrome/browser/autocomplete/keyword_provider.h" 26 #include "chrome/browser/autocomplete/keyword_provider.h"
27 #include "chrome/browser/browser_process.h" 27 #include "chrome/browser/browser_process.h"
28 #include "chrome/browser/command_updater.h" 28 #include "chrome/browser/command_updater.h"
29 #include "chrome/browser/net/url_fixer_upper.h" 29 #include "chrome/browser/net/url_fixer_upper.h"
30 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/search_engines/template_url.h"
32 #include "chrome/browser/search_engines/template_url_service.h"
33 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 31 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
34 #include "content/browser/tab_contents/tab_contents.h" 32 #include "content/browser/tab_contents/tab_contents.h"
35 #include "content/browser/user_metrics.h" 33 #include "content/browser/user_metrics.h"
36 #include "content/common/notification_service.h" 34 #include "content/common/notification_service.h"
37 #include "googleurl/src/url_util.h" 35 #include "googleurl/src/url_util.h"
38 #include "grit/generated_resources.h" 36 #include "grit/generated_resources.h"
39 #include "net/base/escape.h" 37 #include "net/base/escape.h"
40 #include "skia/ext/skia_utils_win.h" 38 #include "skia/ext/skia_utils_win.h"
41 #include "ui/base/clipboard/clipboard.h" 39 #include "ui/base/clipboard/clipboard.h"
42 #include "ui/base/clipboard/scoped_clipboard_writer.h" 40 #include "ui/base/clipboard/scoped_clipboard_writer.h"
(...skipping 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2603 // PosFromChar(i) might return 0 when i is greater than 1. 2601 // PosFromChar(i) might return 0 when i is greater than 1.
2604 return font_.GetStringWidth(text) + GetHorizontalMargin(); 2602 return font_.GetStringWidth(text) + GetHorizontalMargin();
2605 } 2603 }
2606 2604
2607 bool OmniboxViewWin::IsCaretAtEnd() const { 2605 bool OmniboxViewWin::IsCaretAtEnd() const {
2608 long length = GetTextLength(); 2606 long length = GetTextLength();
2609 CHARRANGE sel; 2607 CHARRANGE sel;
2610 GetSelection(sel); 2608 GetSelection(sel);
2611 return sel.cpMin == sel.cpMax && sel.cpMin == length; 2609 return sel.cpMin == sel.cpMax && sel.cpMin == length;
2612 } 2610 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698