| Index: ios/chrome/browser/ui/omnibox/omnibox_view_ios.h
|
| diff --git a/ios/chrome/browser/ui/omnibox/omnibox_view_ios.h b/ios/chrome/browser/ui/omnibox/omnibox_view_ios.h
|
| index 8a99c43018940de96a284a281733504374fc632b..32ca285e7ef6441a27c0b092c85d6ef3234a4f24 100644
|
| --- a/ios/chrome/browser/ui/omnibox/omnibox_view_ios.h
|
| +++ b/ios/chrome/browser/ui/omnibox/omnibox_view_ios.h
|
| @@ -8,7 +8,7 @@
|
| #import <UIKit/UIKit.h>
|
|
|
| #include <memory>
|
| -
|
| +#include "base/auto_reset.h"
|
| #include "base/mac/scoped_nsobject.h"
|
| #include "components/omnibox/browser/omnibox_view.h"
|
| #include "components/toolbar/toolbar_model.h"
|
| @@ -40,6 +40,12 @@ class OmniboxViewIOS : public OmniboxView {
|
| id<OmniboxPopupPositioner> positioner);
|
| ~OmniboxViewIOS() override;
|
|
|
| + // Returns a color representing |security_level|, adjusted based on whether
|
| + // the browser is in Incognito mode.
|
| + static UIColor* GetSecureTextColor(
|
| + security_state::SecurityLevel security_level,
|
| + bool in_dark_mode);
|
| +
|
| // OmniboxView implementation.
|
| void OpenMatch(const AutocompleteMatch& match,
|
| WindowOpenDisposition disposition,
|
| @@ -137,6 +143,9 @@ class OmniboxViewIOS : public OmniboxView {
|
| // returns them in an autoreleased object.
|
| NSAttributedString* ApplyTextAttributes(const base::string16& text);
|
|
|
| + void SetEmphasis(bool emphasize, const gfx::Range& range) override;
|
| + void UpdateSchemeStyle(const gfx::Range& scheme_range) override;
|
| +
|
| // Removes the query refinement chip from the omnibox.
|
| void RemoveQueryRefinementChip();
|
|
|
| @@ -168,6 +177,10 @@ class OmniboxViewIOS : public OmniboxView {
|
|
|
| // Bridges delegate method calls from |field_| to C++ land.
|
| base::scoped_nsobject<AutocompleteTextFieldDelegate> field_delegate_;
|
| +
|
| + // Temporary pointer to the attributed display string, stored as color and
|
| + // other emphasis attributes are applied by the superclass.
|
| + NSMutableAttributedString* attributing_display_string_; // weak
|
| };
|
|
|
| #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_
|
|
|