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

Unified Diff: components/native_app_window/draggable_region.h

Issue 616253002: Extract NativeAppWindow from src/extensions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: might fix athena. similarity=33 Created 6 years, 3 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: components/native_app_window/draggable_region.h
diff --git a/components/native_app_window/draggable_region.h b/components/native_app_window/draggable_region.h
new file mode 100644
index 0000000000000000000000000000000000000000..fe28b463e1ca6cb4c00729be0ebe2b8da82220b4
--- /dev/null
+++ b/components/native_app_window/draggable_region.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 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 COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
+#define COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
+
+#include <vector>
+
+#include "components/native_app_window/native_app_window_export.h"
+#include "ui/gfx/geometry/rect.h"
+
+class SkRegion;
+
+namespace native_app_window {
+
+struct NATIVE_APP_WINDOW_EXPORT DraggableRegion {
+ bool draggable;
+ gfx::Rect bounds;
+
+ DraggableRegion();
+};
+
+// Convert draggable regions in raw format to SkRegion format. Caller is
+// responsible for deleting the returned SkRegion instance.
+NATIVE_APP_WINDOW_EXPORT SkRegion* RawDraggableRegionsToSkRegion(
+ const std::vector<DraggableRegion>& regions);
+
+} // namespace native_app_window
+
+#endif // COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
« no previous file with comments | « components/native_app_window/app_window_create_params.cc ('k') | components/native_app_window/draggable_region.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698