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

Side by Side Diff: ui/base/gtk/scoped_region.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 | Annotate | Revision Log
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 UI_BASE_GTK_SCOPED_REGION_H_
6 #define UI_BASE_GTK_SCOPED_REGION_H_
7
8 #include "base/basictypes.h"
9 #include "ui/base/ui_base_export.h"
10
11 typedef struct _GdkRegion GdkRegion;
12
13 namespace ui {
14
15 // Wraps a GdkRegion. This class provides the same methods as ScopedGDIObject in
16 // base/win/scoped_gdi_object.h.
17 class UI_BASE_EXPORT ScopedRegion {
18 public:
19 ScopedRegion();
20 explicit ScopedRegion(GdkRegion* region);
21
22 ~ScopedRegion();
23
24 void Set(GdkRegion* region);
25
26 GdkRegion* Get();
27
28 GdkRegion* release();
29
30 private:
31 void Close();
32
33 GdkRegion* region_;
34
35 DISALLOW_COPY_AND_ASSIGN(ScopedRegion);
36 };
37
38 } // namespace ui
39
40 #endif // UI_BASE_GTK_SCOPED_REGION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698