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

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

Issue 19073003: Update some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/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 11 matching lines...) Expand all
22 #include "base/win/iat_patch_function.h" 22 #include "base/win/iat_patch_function.h"
23 #include "base/win/metro.h" 23 #include "base/win/metro.h"
24 #include "base/win/scoped_hdc.h" 24 #include "base/win/scoped_hdc.h"
25 #include "base/win/scoped_select_object.h" 25 #include "base/win/scoped_select_object.h"
26 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
27 #include "chrome/app/chrome_command_ids.h" 27 #include "chrome/app/chrome_command_ids.h"
28 #include "chrome/browser/autocomplete/autocomplete_input.h" 28 #include "chrome/browser/autocomplete/autocomplete_input.h"
29 #include "chrome/browser/autocomplete/autocomplete_match.h" 29 #include "chrome/browser/autocomplete/autocomplete_match.h"
30 #include "chrome/browser/autocomplete/keyword_provider.h" 30 #include "chrome/browser/autocomplete/keyword_provider.h"
31 #include "chrome/browser/bookmarks/bookmark_node_data.h" 31 #include "chrome/browser/bookmarks/bookmark_node_data.h"
32 #include "chrome/browser/chrome_notification_types.h"
32 #include "chrome/browser/command_updater.h" 33 #include "chrome/browser/command_updater.h"
33 #include "chrome/browser/net/url_fixer_upper.h" 34 #include "chrome/browser/net/url_fixer_upper.h"
34 #include "chrome/browser/profiles/profile.h" 35 #include "chrome/browser/profiles/profile.h"
35 #include "chrome/browser/search/search.h" 36 #include "chrome/browser/search/search.h"
36 #include "chrome/browser/ui/browser.h" 37 #include "chrome/browser/ui/browser.h"
37 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 38 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
38 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" 39 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
39 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 40 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
40 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 41 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
41 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" 42 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
42 #include "chrome/common/chrome_notification_types.h"
43 #include "content/public/browser/user_metrics.h" 43 #include "content/public/browser/user_metrics.h"
44 #include "content/public/browser/web_contents.h" 44 #include "content/public/browser/web_contents.h"
45 #include "extensions/common/constants.h" 45 #include "extensions/common/constants.h"
46 #include "grit/generated_resources.h" 46 #include "grit/generated_resources.h"
47 #include "net/base/escape.h" 47 #include "net/base/escape.h"
48 #include "skia/ext/skia_utils_win.h" 48 #include "skia/ext/skia_utils_win.h"
49 #include "ui/base/accessibility/accessible_view_state.h" 49 #include "ui/base/accessibility/accessible_view_state.h"
50 #include "ui/base/clipboard/clipboard.h" 50 #include "ui/base/clipboard/clipboard.h"
51 #include "ui/base/clipboard/scoped_clipboard_writer.h" 51 #include "ui/base/clipboard/scoped_clipboard_writer.h"
52 #include "ui/base/dragdrop/drag_drop_types.h" 52 #include "ui/base/dragdrop/drag_drop_types.h"
(...skipping 2771 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 return (rect.left - client_rect.left) + (client_rect.right - rect.right); 2824 return (rect.left - client_rect.left) + (client_rect.right - rect.right);
2825 } 2825 }
2826 2826
2827 int OmniboxViewWin::WidthNeededToDisplay(const string16& text) const { 2827 int OmniboxViewWin::WidthNeededToDisplay(const string16& text) const {
2828 // Use font_.GetStringWidth() instead of PosFromChar(GetTextLength()) because 2828 // Use font_.GetStringWidth() instead of PosFromChar(GetTextLength()) because
2829 // PosFromChar() is apparently buggy. In both LTR UI and RTL UI with 2829 // PosFromChar() is apparently buggy. In both LTR UI and RTL UI with
2830 // left-to-right layout, PosFromChar(i) might return 0 when i is greater than 2830 // left-to-right layout, PosFromChar(i) might return 0 when i is greater than
2831 // 1. 2831 // 1.
2832 return font_.GetStringWidth(text) + GetHorizontalMargin(); 2832 return font_.GetStringWidth(text) + GetHorizontalMargin();
2833 } 2833 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698