1 // Copyright (c) 2009 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.
5 #ifndef APP_SCOPED_HANDLE_GTK_H_
6 #define APP_SCOPED_HANDLE_GTK_H_
10 // Wraps a GdkRegion. This class provides the same methods as ScopedGDIObject in
14 ScopedRegion() : region_(NULL
) {}
15 explicit ScopedRegion(GdkRegion
* region
) : region_(region
) {}
21 void Set(GdkRegion
* region
) {
31 GdkRegion
* release() {
32 GdkRegion
* region
= region_
;
40 gdk_region_destroy(region_
);
47 DISALLOW_COPY_AND_ASSIGN(ScopedRegion
);
50 #endif // APP_SCOPED_HANDLE_GTK_H_