| Index: chrome/browser/android/vr_shell/textures/ui_texture.h
|
| diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.h b/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| index ca2e52ec38b535794c443636d71c76270772978f..3805d3bf464ed92eff8d56df4e148815a43ee96f 100644
|
| --- a/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| +++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/strings/string16.h"
|
| +#include "chrome/browser/android/vr_shell/color_scheme.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| #include "ui/gfx/geometry/size.h"
|
| @@ -39,6 +40,8 @@ class UiTexture {
|
|
|
| bool dirty() const { return dirty_; }
|
|
|
| + void SetMode(ColorScheme::Mode mode);
|
| +
|
| protected:
|
| enum TextAlignment {
|
| kTextAlignmentNone,
|
| @@ -54,6 +57,9 @@ class UiTexture {
|
|
|
| virtual void Draw(SkCanvas* canvas, const gfx::Size& texture_size) = 0;
|
|
|
| + virtual void OnSetMode();
|
| + ColorScheme::Mode mode() const { return mode_; }
|
| +
|
| // Prepares a set of RenderText objects with the given color and fonts.
|
| // Attempts to fit the text within the provided size. |flags| specifies how
|
| // the text should be rendered. If multiline is requested and provided height
|
| @@ -82,6 +88,7 @@ class UiTexture {
|
|
|
| private:
|
| bool dirty_ = true;
|
| + ColorScheme::Mode mode_ = ColorScheme::kModeNormal;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(UiTexture);
|
| };
|
|
|