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

Side by Side Diff: chrome/browser/cocoa/location_bar/location_bar_view_mac.mm

Issue 3332022: Bunch of match preview tweaks: (Closed)
Patch Set: Add string16 include Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/location_bar/location_bar_view_mac.h" 5 #import "chrome/browser/cocoa/location_bar/location_bar_view_mac.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/nsimage_cache_mac.h" 9 #include "base/nsimage_cache_mac.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // The bubble needs to be just below the Omnibox and slightly to the right 117 // The bubble needs to be just below the Omnibox and slightly to the right
118 // of the left omnibox icon, so shift x and y co-ordinates. 118 // of the left omnibox icon, so shift x and y co-ordinates.
119 const NSPoint kOffset = NSMakePoint(1, 4); 119 const NSPoint kOffset = NSMakePoint(1, 4);
120 [FirstRunBubbleController showForView:field_ offset:kOffset profile:profile_]; 120 [FirstRunBubbleController showForView:field_ offset:kOffset profile:profile_];
121 } 121 }
122 122
123 std::wstring LocationBarViewMac::GetInputString() const { 123 std::wstring LocationBarViewMac::GetInputString() const {
124 return location_input_; 124 return location_input_;
125 } 125 }
126 126
127 void LocationBarViewMac::SetSuggestedText(const string16& text) {
128 // TODO: implement me.
129 NOTIMPLEMENTED();
130 }
131
127 WindowOpenDisposition LocationBarViewMac::GetWindowOpenDisposition() const { 132 WindowOpenDisposition LocationBarViewMac::GetWindowOpenDisposition() const {
128 return disposition_; 133 return disposition_;
129 } 134 }
130 135
131 PageTransition::Type LocationBarViewMac::GetPageTransition() const { 136 PageTransition::Type LocationBarViewMac::GetPageTransition() const {
132 return transition_; 137 return transition_;
133 } 138 }
134 139
135 void LocationBarViewMac::AcceptInput() { 140 void LocationBarViewMac::AcceptInput() {
136 WindowOpenDisposition disposition = 141 WindowOpenDisposition disposition =
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 569
565 // These need to change anytime the layout changes. 570 // These need to change anytime the layout changes.
566 // TODO(shess): Anytime the field editor might have changed, the 571 // TODO(shess): Anytime the field editor might have changed, the
567 // cursor rects almost certainly should have changed. The tooltips 572 // cursor rects almost certainly should have changed. The tooltips
568 // might change even when the rects don't change. 573 // might change even when the rects don't change.
569 [field_ resetFieldEditorFrameIfNeeded]; 574 [field_ resetFieldEditorFrameIfNeeded];
570 [field_ updateCursorAndToolTipRects]; 575 [field_ updateCursorAndToolTipRects];
571 576
572 [field_ setNeedsDisplay:YES]; 577 [field_ setNeedsDisplay:YES];
573 } 578 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/location_bar/location_bar_view_mac.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698