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

Unified Diff: services/ui/public/cpp/bitmap_uploader.h

Issue 2162693002: Move bitmap uploader to ui service client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/BUILD.gn ('k') | services/ui/public/cpp/lib/bitmap_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/bitmap_uploader.h
diff --git a/components/bitmap_uploader/bitmap_uploader.h b/services/ui/public/cpp/bitmap_uploader.h
similarity index 78%
rename from components/bitmap_uploader/bitmap_uploader.h
rename to services/ui/public/cpp/bitmap_uploader.h
index 622c131fd4180e8d354d01c5f862a9dfacb7cf31..180ea0bf1a8932cb1bebd39522fa843c4c7181cf 100644
--- a/components/bitmap_uploader/bitmap_uploader.h
+++ b/services/ui/public/cpp/bitmap_uploader.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_BITMAP_UPLOADER_BITMAP_UPLOADER_H_
-#define COMPONENTS_BITMAP_UPLOADER_BITMAP_UPLOADER_H_
+#ifndef SERVICES_UI_PUBLIC_CPP_BITMAP_UPLOADER_H_
+#define SERVICES_UI_PUBLIC_CPP_BITMAP_UPLOADER_H_
#include <stdint.h>
@@ -12,31 +12,26 @@
#include "base/compiler_specific.h"
#include "base/containers/hash_tables.h"
#include "base/macros.h"
-#include "components/bitmap_uploader/bitmap_uploader_export.h"
#include "gpu/GLES2/gl2chromium.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "services/ui/public/cpp/window_surface.h"
#include "services/ui/public/cpp/window_surface_client.h"
#include "services/ui/public/interfaces/surface.mojom.h"
-namespace ui {
-class GLES2Context;
-}
-
namespace shell {
class Connector;
}
-namespace bitmap_uploader {
+namespace ui {
+class GLES2Context;
-BITMAP_UPLOADER_EXPORT extern const char kBitmapUploaderForAcceleratedWidget[];
+extern const char kBitmapUploaderForAcceleratedWidget[];
// BitmapUploader is useful if you want to draw a bitmap or color in a
-// ui::Window.
-class BITMAP_UPLOADER_EXPORT BitmapUploader
- : public NON_EXPORTED_BASE(ui::WindowSurfaceClient) {
+// Window.
+class BitmapUploader : public WindowSurfaceClient {
public:
- explicit BitmapUploader(ui::Window* window);
+ explicit BitmapUploader(Window* window);
~BitmapUploader() override;
void Init(shell::Connector* connector);
@@ -68,7 +63,7 @@ class BITMAP_UPLOADER_EXPORT BitmapUploader
// WindowSurfaceClient implementation.
void OnResourcesReturned(
- ui::WindowSurface* surface,
+ WindowSurface* surface,
mojo::Array<cc::ReturnedResource> resources) override;
ui::Window* window_;
@@ -89,6 +84,6 @@ class BITMAP_UPLOADER_EXPORT BitmapUploader
DISALLOW_COPY_AND_ASSIGN(BitmapUploader);
};
-} // namespace bitmap_uploader
+} // namespace ui
-#endif // COMPONENTS_BITMAP_UPLOADER_BITMAP_UPLAODER_H_
+#endif // SERVICES_UI_PUBLIC_CPP_BITMAP_UPLOADER_H_
« no previous file with comments | « services/ui/public/cpp/BUILD.gn ('k') | services/ui/public/cpp/lib/bitmap_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698