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

Side by Side 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, 2 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
6 #define COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
7
8 #include <vector>
9
10 #include "components/native_app_window/native_app_window_export.h"
11 #include "ui/gfx/geometry/rect.h"
12
13 class SkRegion;
14
15 namespace native_app_window {
16
17 struct NATIVE_APP_WINDOW_EXPORT DraggableRegion {
18 bool draggable;
19 gfx::Rect bounds;
20
21 DraggableRegion();
22 };
23
24 // Convert draggable regions in raw format to SkRegion format. Caller is
25 // responsible for deleting the returned SkRegion instance.
26 NATIVE_APP_WINDOW_EXPORT SkRegion* RawDraggableRegionsToSkRegion(
27 const std::vector<DraggableRegion>& regions);
28
29 } // namespace native_app_window
30
31 #endif // COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
OLDNEW
« 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