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

Side by Side Diff: chrome/browser/android/vr_shell/textures/url_bar_texture.h

Issue 2884453002: VR: audio and video capture indicators. (Closed)
Patch Set: adding missing files 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h"
11 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" 12 #include "chrome/browser/android/vr_shell/textures/ui_texture.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 class RenderText; 16 class RenderText;
16 } // namespace gfx 17 } // namespace gfx
17 18
18 namespace vr_shell { 19 namespace vr_shell {
19 20
20 class UrlBarTexture : public UiTexture { 21 class UrlBarTexture : public UiTexture {
(...skipping 10 matching lines...) Expand all
31 private: 32 private:
32 void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override; 33 void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override;
33 float ToPixels(float meters) const; 34 float ToPixels(float meters) const;
34 35
35 gfx::SizeF size_; 36 gfx::SizeF size_;
36 bool hover_ = false; 37 bool hover_ = false;
37 int security_level_; 38 int security_level_;
38 GURL gurl_; 39 GURL gurl_;
39 GURL last_drawn_gurl_; 40 GURL last_drawn_gurl_;
40 std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_; 41 std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_;
42
43 DISALLOW_COPY_AND_ASSIGN(UrlBarTexture);
41 }; 44 };
42 45
43 } // namespace vr_shell 46 } // namespace vr_shell
44 47
45 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_ 48 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698