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

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

Issue 787023002: Upstream more layers, decoration title, layer_title_cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated creation year Created 6 years 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/toolbar_layer.h
diff --git a/chrome/browser/android/compositor/layer/toolbar_layer.h b/chrome/browser/android/compositor/layer/toolbar_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..7440ef85d3532cffe4ccb50970e9c6a2596fdac3
--- /dev/null
+++ b/chrome/browser/android/compositor/layer/toolbar_layer.h
@@ -0,0 +1,51 @@
+// Copyright 2014 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_TOOLBAR_LAYER_H_
+#define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_
+
+#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/android/compositor/layer/layer.h"
+#include "ui/android/resources/resource_manager.h"
+
+namespace cc {
+class Layer;
+class SolidColorLayer;
+class UIResourceLayer;
+}
+
+namespace chrome {
+namespace android {
+
+class ToolbarLayer : public Layer {
+ public:
+ static scoped_refptr<ToolbarLayer> Create();
+
+ // Implements Layer
+ scoped_refptr<cc::Layer> layer() override;
+
+ void PushResource(ui::ResourceManager::Resource* resource,
+ bool anonymize,
+ bool anonymize_component_is_incognito,
+ bool show_debug);
+
+ protected:
+ ToolbarLayer();
+ ~ToolbarLayer() override;
+
+ private:
+ scoped_refptr<cc::Layer> layer_;
+ scoped_refptr<cc::UIResourceLayer> bitmap_layer_;
+ scoped_refptr<cc::SolidColorLayer> anonymize_layer_;
+ scoped_refptr<cc::SolidColorLayer> debug_layer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ToolbarLayer);
+};
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_

Powered by Google App Engine
This is Rietveld 408576698