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

Unified Diff: chrome/browser/android/compositor/layer/reader_mode_layer.h

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 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/compositor/layer/reader_mode_layer.h
diff --git a/chrome/browser/android/compositor/layer/reader_mode_layer.h b/chrome/browser/android/compositor/layer/reader_mode_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..940dd223ff9eff43116e64b0fb2bed62c5d4d1bc
--- /dev/null
+++ b/chrome/browser/android/compositor/layer/reader_mode_layer.h
@@ -0,0 +1,68 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
+#define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/android/compositor/layer/layer.h"
+
+namespace cc {
+class Layer;
+class NinePatchLayer;
+class SolidColorLayer;
+class UIResourceLayer;
+}
+
+namespace content {
+class ContentViewCore;
+}
+
+namespace ui {
+class ResourceManager;
+}
+
+namespace chrome {
+namespace android {
+
+class ReaderModeLayer : public Layer {
+ public:
+ static scoped_refptr<ReaderModeLayer> Create(
+ ui::ResourceManager* resource_manager);
+
+ void SetProperties(int panel_background_resource_id,
+ int panel_text_resource_id,
+ content::ContentViewCore* reader_mode_content_view_core,
+ float panel_y,
+ float panel_width,
+ float panel_margin_top,
+ float panel_height,
+ float distilled_y,
+ float distilled_height,
+ float x,
+ float panel_text_opacity,
+ int header_background_color);
+
+ scoped_refptr<cc::Layer> layer() override;
+
+ protected:
+ explicit ReaderModeLayer(ui::ResourceManager* resource_manager);
+ ~ReaderModeLayer() override;
+
+ private:
+ ui::ResourceManager* resource_manager_;
+
+ scoped_refptr<cc::Layer> layer_;
+ scoped_refptr<cc::NinePatchLayer> panel_background_;
+ scoped_refptr<cc::UIResourceLayer> panel_text_;
+ scoped_refptr<cc::NinePatchLayer> content_shadow_;
+ scoped_refptr<cc::SolidColorLayer> content_solid_;
+ scoped_refptr<cc::Layer> content_view_container_;
+};
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
« no previous file with comments | « chrome/browser/android/compositor/compositor_view.cc ('k') | chrome/browser/android/compositor/layer/reader_mode_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698