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

Side by Side Diff: components/omnibox/browser/omnibox_edit_model.h

Issue 2792103005: Make keyword hint view ("press tab to search foo.com") clickable. (Closed)
Patch Set: elaborate on comment Created 3 years, 8 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 // Reasons why the Omnibox could change into keyword mode. 38 // Reasons why the Omnibox could change into keyword mode.
39 // These numeric values are used in UMA logs; do not change them. 39 // These numeric values are used in UMA logs; do not change them.
40 enum class KeywordModeEntryMethod { 40 enum class KeywordModeEntryMethod {
41 TAB = 0, 41 TAB = 0,
42 SPACE_AT_END = 1, 42 SPACE_AT_END = 1,
43 SPACE_IN_MIDDLE = 2, 43 SPACE_IN_MIDDLE = 2,
44 KEYBOARD_SHORTCUT = 3, 44 KEYBOARD_SHORTCUT = 3,
45 QUESTION_MARK = 4, 45 QUESTION_MARK = 4,
46 CLICK_ON_VIEW = 5,
47 TAP_ON_VIEW = 6,
46 NUM_ITEMS, 48 NUM_ITEMS,
47 }; 49 };
48 50
49 class OmniboxEditModel { 51 class OmniboxEditModel {
50 public: 52 public:
51 // Did the Omnibox focus originate via the user clicking on the Omnibox or on 53 // Did the Omnibox focus originate via the user clicking on the Omnibox or on
52 // the Fakebox? 54 // the Fakebox?
53 enum FocusSource { 55 enum FocusSource {
54 INVALID = 0, 56 INVALID = 0,
55 OMNIBOX = 1, 57 OMNIBOX = 1,
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 563
562 // The input that was sent to the AutocompleteController. Since no 564 // The input that was sent to the AutocompleteController. Since no
563 // autocomplete query is started after a tab switch, it is possible for this 565 // autocomplete query is started after a tab switch, it is possible for this
564 // |input_| to differ from the one currently stored in AutocompleteController. 566 // |input_| to differ from the one currently stored in AutocompleteController.
565 AutocompleteInput input_; 567 AutocompleteInput input_;
566 568
567 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); 569 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel);
568 }; 570 };
569 571
570 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 572 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698