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

Unified Diff: chrome/browser/android/vr_shell/textures/url_bar_texture.h

Issue 2902043005: [vr] Add incognito coloring (Closed)
Patch Set: . Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/textures/url_bar_texture.h
diff --git a/chrome/browser/android/vr_shell/textures/url_bar_texture.h b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
index 92e40f679864212f36e99f537d007a3828a5298a..e170e4275c43ca3eeafd4b5ddedd0decc8d076cd 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -21,6 +21,7 @@ class RenderText;
namespace vr_shell {
class RenderTextWrapper;
+struct ColorScheme;
class UrlBarTexture : public UiTexture {
public:
@@ -47,13 +48,16 @@ class UrlBarTexture : public UiTexture {
static void ApplyUrlStyling(const base::string16& formatted_url,
const url::Parsed& parsed,
security_state::SecurityLevel security_level,
- vr_shell::RenderTextWrapper* render_text);
+ vr_shell::RenderTextWrapper* render_text,
+ const ColorScheme& color_scheme);
private:
void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override;
float ToPixels(float meters) const;
bool HitsTransparentRegion(const gfx::PointF& meters, bool left) const;
void RenderUrl(const gfx::Size& texture_size, const gfx::Rect& bounds);
+ void OnSetMode() override;
+ const ColorScheme& color_scheme() const;
gfx::SizeF size_;
bool hovered_ = false;

Powered by Google App Engine
This is Rietveld 408576698