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

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

Issue 2902043005: [vr] Add incognito coloring (Closed)
Patch Set: rebase 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 c6ebf975f196f75fa63d6693d17f01f197c58518..c142fdc3cacc264e9bee7a300c7662f78f175f9f 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -39,16 +39,19 @@ class UrlBarTexture : public UiTexture {
void SetHovered(bool hovered);
void SetPressed(bool pressed);
+ void SetIncognito(bool incognito);
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;
+ SkColor AdjustColorForIncognito(SkColor c) const;
gfx::SizeF size_;
int security_level_;
bool hovered_ = false;
bool pressed_ = false;
+ bool incognito_ = false;
GURL gurl_;
GURL last_drawn_gurl_;
std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_;

Powered by Google App Engine
This is Rietveld 408576698