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

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

Issue 149717: [Mac] Refactor location-bar autocomplete cell classes. (Closed)
Patch Set: jrg comment Created 11 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
« no previous file with comments | « chrome/browser/cocoa/location_bar_view_mac.h ('k') | chrome/browser/cocoa/toolbar_controller.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_view_mac.h" 5 #import "chrome/browser/cocoa/location_bar_view_mac.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/alternate_nav_url_fetcher.h" 9 #include "chrome/browser/alternate_nav_url_fetcher.h"
10 #import "chrome/browser/app_controller_mac.h" 10 #import "chrome/browser/app_controller_mac.h"
11 #import "chrome/browser/autocomplete/autocomplete_edit_view_mac.h" 11 #import "chrome/browser/autocomplete/autocomplete_edit_view_mac.h"
12 #include "chrome/browser/command_updater.h" 12 #include "chrome/browser/command_updater.h"
13 #include "third_party/skia/include/core/SkBitmap.h" 13 #include "third_party/skia/include/core/SkBitmap.h"
14 14
15 // TODO(shess): This code is mostly copied from the gtk 15 // TODO(shess): This code is mostly copied from the gtk
16 // implementation. Make sure it's all appropriate and flesh it out. 16 // implementation. Make sure it's all appropriate and flesh it out.
17 17
18 LocationBarViewMac::LocationBarViewMac(NSTextField* field, 18 LocationBarViewMac::LocationBarViewMac(AutocompleteTextField* field,
19 CommandUpdater* command_updater, 19 CommandUpdater* command_updater,
20 ToolbarModel* toolbar_model, 20 ToolbarModel* toolbar_model,
21 Profile* profile) 21 Profile* profile)
22 : edit_view_(new AutocompleteEditViewMac(this, toolbar_model, profile, 22 : edit_view_(new AutocompleteEditViewMac(this, toolbar_model, profile,
23 command_updater, field)), 23 command_updater, field)),
24 command_updater_(command_updater), 24 command_updater_(command_updater),
25 disposition_(CURRENT_TAB), 25 disposition_(CURRENT_TAB),
26 transition_(PageTransition::TYPED) { 26 transition_(PageTransition::TYPED) {
27 } 27 }
28 28
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 void LocationBarViewMac::Revert() { 132 void LocationBarViewMac::Revert() {
133 edit_view_->RevertAll(); 133 edit_view_->RevertAll();
134 } 134 }
135 135
136 int LocationBarViewMac::PageActionVisibleCount() { 136 int LocationBarViewMac::PageActionVisibleCount() {
137 NOTIMPLEMENTED(); 137 NOTIMPLEMENTED();
138 return -1; 138 return -1;
139 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/location_bar_view_mac.h ('k') | chrome/browser/cocoa/toolbar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698