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/ui/views/location_bar/location_bar_view.h" | 5 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
6 | 6 |
7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 } | 1028 } |
1029 | 1029 |
1030 #if !defined(USE_AURA) | 1030 #if !defined(USE_AURA) |
1031 if (!views_omnibox) | 1031 if (!views_omnibox) |
1032 return GetOmniboxViewWin()->SkipDefaultKeyEventProcessing(event); | 1032 return GetOmniboxViewWin()->SkipDefaultKeyEventProcessing(event); |
1033 #endif | 1033 #endif |
1034 NOTIMPLEMENTED(); | 1034 NOTIMPLEMENTED(); |
1035 return false; | 1035 return false; |
1036 #else | 1036 #else |
1037 // This method is not used for Linux ports. See FocusManager::OnKeyEvent() in | 1037 // This method is not used for Linux ports. See FocusManager::OnKeyEvent() in |
1038 // src/views/focus/focus_manager.cc for details. | 1038 // src/ui/views/focus/focus_manager.cc for details. |
1039 return false; | 1039 return false; |
1040 #endif | 1040 #endif |
1041 } | 1041 } |
1042 | 1042 |
1043 void LocationBarView::GetAccessibleState(ui::AccessibleViewState* state) { | 1043 void LocationBarView::GetAccessibleState(ui::AccessibleViewState* state) { |
1044 state->role = ui::AccessibilityTypes::ROLE_LOCATION_BAR; | 1044 state->role = ui::AccessibilityTypes::ROLE_LOCATION_BAR; |
1045 state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_LOCATION); | 1045 state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_LOCATION); |
1046 state->value = location_entry_->GetText(); | 1046 state->value = location_entry_->GetText(); |
1047 | 1047 |
1048 string16::size_type entry_start; | 1048 string16::size_type entry_start; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 !suggested_text_view_->GetText().empty(); | 1230 !suggested_text_view_->GetText().empty(); |
1231 } | 1231 } |
1232 | 1232 |
1233 #if !defined(USE_AURA) | 1233 #if !defined(USE_AURA) |
1234 OmniboxViewWin* LocationBarView::GetOmniboxViewWin() { | 1234 OmniboxViewWin* LocationBarView::GetOmniboxViewWin() { |
1235 CHECK(!views::Widget::IsPureViews()); | 1235 CHECK(!views::Widget::IsPureViews()); |
1236 return static_cast<OmniboxViewWin*>(location_entry_.get()); | 1236 return static_cast<OmniboxViewWin*>(location_entry_.get()); |
1237 } | 1237 } |
1238 #endif | 1238 #endif |
1239 #endif | 1239 #endif |
OLD | NEW |