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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 2641003002: Show scheme in black and content in gray for data: protocol urls (Closed)
Patch Set: Move misplaced #include to mm files Created 3 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void OnBeforePossibleChange() override; 146 void OnBeforePossibleChange() override;
147 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; 147 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override;
148 gfx::NativeView GetNativeView() const override; 148 gfx::NativeView GetNativeView() const override;
149 gfx::NativeView GetRelativeWindowForPopup() const override; 149 gfx::NativeView GetRelativeWindowForPopup() const override;
150 int GetWidth() const override; 150 int GetWidth() const override;
151 bool IsImeShowingPopup() const override; 151 bool IsImeShowingPopup() const override;
152 void ShowImeIfNeeded() override; 152 void ShowImeIfNeeded() override;
153 void OnMatchOpened(AutocompleteMatch::Type match_type) override; 153 void OnMatchOpened(AutocompleteMatch::Type match_type) override;
154 int GetOmniboxTextLength() const override; 154 int GetOmniboxTextLength() const override;
155 void EmphasizeURLComponents() override; 155 void EmphasizeURLComponents() override;
156 void SetEmphasis(bool emphasize, const gfx::Range& range) override;
157 void UpdateSchemeStyle(const gfx::Range& range) override;
156 158
157 // views::Textfield: 159 // views::Textfield:
158 bool IsItemForCommandIdDynamic(int command_id) const override; 160 bool IsItemForCommandIdDynamic(int command_id) const override;
159 base::string16 GetLabelForCommandId(int command_id) const override; 161 base::string16 GetLabelForCommandId(int command_id) const override;
160 const char* GetClassName() const override; 162 const char* GetClassName() const override;
161 bool OnMousePressed(const ui::MouseEvent& event) override; 163 bool OnMousePressed(const ui::MouseEvent& event) override;
162 bool OnMouseDragged(const ui::MouseEvent& event) override; 164 bool OnMouseDragged(const ui::MouseEvent& event) override;
163 void OnMouseReleased(const ui::MouseEvent& event) override; 165 void OnMouseReleased(const ui::MouseEvent& event) override;
164 void OnGestureEvent(ui::GestureEvent* event) override; 166 void OnGestureEvent(ui::GestureEvent* event) override;
165 void AboutToRequestFocusFromTabTraversal(bool reverse) override; 167 void AboutToRequestFocusFromTabTraversal(bool reverse) override;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool select_all_on_gesture_tap_; 244 bool select_all_on_gesture_tap_;
243 245
244 // The time of the first character insert operation that has not yet been 246 // The time of the first character insert operation that has not yet been
245 // painted. Used to measure omnibox responsiveness with a histogram. 247 // painted. Used to measure omnibox responsiveness with a histogram.
246 base::TimeTicks insert_char_time_; 248 base::TimeTicks insert_char_time_;
247 249
248 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 250 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
249 }; 251 };
250 252
251 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 253 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698