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

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

Issue 2911943002: [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 0d160e252dd0cb3d3a8f5892b4ef8fe37650263c..2a6d4b81f75cb2c2378a3a0275ef6467314d829b 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -23,6 +23,7 @@ class RenderText;
namespace vr_shell {
class RenderTextWrapper;
+struct ColorScheme;
class UrlBarTexture : public UiTexture {
public:
@@ -50,13 +51,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;
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.cc ('k') | chrome/browser/android/vr_shell/textures/url_bar_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698