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

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

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 (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 15 matching lines...) Expand all
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/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
32 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 32 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
33 #include "chrome/common/chrome_notification_types.h" 33 #include "chrome/common/chrome_notification_types.h"
34 #include "content/browser/tab_contents/tab_contents.h" 34 #include "content/browser/tab_contents/tab_contents.h"
35 #include "content/browser/user_metrics.h" 35 #include "content/browser/user_metrics.h"
36 #include "content/common/notification_service.h"
37 #include "googleurl/src/url_util.h" 36 #include "googleurl/src/url_util.h"
38 #include "grit/generated_resources.h" 37 #include "grit/generated_resources.h"
39 #include "net/base/escape.h" 38 #include "net/base/escape.h"
40 #include "skia/ext/skia_utils_win.h" 39 #include "skia/ext/skia_utils_win.h"
41 #include "ui/base/clipboard/clipboard.h" 40 #include "ui/base/clipboard/clipboard.h"
42 #include "ui/base/clipboard/scoped_clipboard_writer.h" 41 #include "ui/base/clipboard/scoped_clipboard_writer.h"
43 #include "ui/base/dragdrop/drag_drop_types.h" 42 #include "ui/base/dragdrop/drag_drop_types.h"
44 #include "ui/base/dragdrop/drag_source.h" 43 #include "ui/base/dragdrop/drag_source.h"
45 #include "ui/base/dragdrop/drop_target.h" 44 #include "ui/base/dragdrop/drop_target.h"
46 #include "ui/base/dragdrop/os_exchange_data.h" 45 #include "ui/base/dragdrop/os_exchange_data.h"
(...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 // PosFromChar(i) might return 0 when i is greater than 1. 2612 // PosFromChar(i) might return 0 when i is greater than 1.
2614 return font_.GetStringWidth(text) + GetHorizontalMargin(); 2613 return font_.GetStringWidth(text) + GetHorizontalMargin();
2615 } 2614 }
2616 2615
2617 bool OmniboxViewWin::IsCaretAtEnd() const { 2616 bool OmniboxViewWin::IsCaretAtEnd() const {
2618 long length = GetTextLength(); 2617 long length = GetTextLength();
2619 CHARRANGE sel; 2618 CHARRANGE sel;
2620 GetSelection(sel); 2619 GetSelection(sel);
2621 return sel.cpMin == sel.cpMax && sel.cpMin == length; 2620 return sel.cpMin == sel.cpMax && sel.cpMin == length;
2622 } 2621 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698