OLD | NEW |
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/autocomplete/autocomplete_edit_view_views.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_views.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 } | 527 } |
528 | 528 |
529 gfx::NativeView AutocompleteEditViewViews::GetNativeView() const { | 529 gfx::NativeView AutocompleteEditViewViews::GetNativeView() const { |
530 return GetWidget()->GetNativeView(); | 530 return GetWidget()->GetNativeView(); |
531 } | 531 } |
532 | 532 |
533 CommandUpdater* AutocompleteEditViewViews::GetCommandUpdater() { | 533 CommandUpdater* AutocompleteEditViewViews::GetCommandUpdater() { |
534 return command_updater_; | 534 return command_updater_; |
535 } | 535 } |
536 | 536 |
537 void AutocompleteEditViewViews::SetInstantSuggestion(const string16& input) { | 537 void AutocompleteEditViewViews::SetInstantSuggestion(const string16& input, |
| 538 bool animate_to_complete) { |
538 NOTIMPLEMENTED(); | 539 NOTIMPLEMENTED(); |
539 } | 540 } |
540 | 541 |
541 string16 AutocompleteEditViewViews::GetInstantSuggestion() const { | 542 string16 AutocompleteEditViewViews::GetInstantSuggestion() const { |
542 NOTIMPLEMENTED(); | 543 NOTIMPLEMENTED(); |
543 return string16(); | 544 return string16(); |
544 } | 545 } |
545 | 546 |
546 int AutocompleteEditViewViews::TextWidth() const { | 547 int AutocompleteEditViewViews::TextWidth() const { |
547 // TODO(oshima): add horizontal margin. | 548 // TODO(oshima): add horizontal margin. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 AutocompletePopupView* AutocompleteEditViewViews::CreatePopupView( | 651 AutocompletePopupView* AutocompleteEditViewViews::CreatePopupView( |
651 Profile* profile, | 652 Profile* profile, |
652 const View* location_bar) { | 653 const View* location_bar) { |
653 #if defined(TOUCH_UI) | 654 #if defined(TOUCH_UI) |
654 return new TouchAutocompletePopupContentsView( | 655 return new TouchAutocompletePopupContentsView( |
655 #else | 656 #else |
656 return new AutocompletePopupContentsView( | 657 return new AutocompletePopupContentsView( |
657 #endif | 658 #endif |
658 gfx::Font(), this, model_.get(), profile, location_bar); | 659 gfx::Font(), this, model_.get(), profile, location_bar); |
659 } | 660 } |
OLD | NEW |