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

Unified Diff: app/scoped_handle_gtk.h

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « app/message_box_flags.h ('k') | app/surface/transport_dib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/scoped_handle_gtk.h
===================================================================
--- app/scoped_handle_gtk.h (revision 71854)
+++ app/scoped_handle_gtk.h (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2009 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 APP_SCOPED_HANDLE_GTK_H_
-#define APP_SCOPED_HANDLE_GTK_H_
-#pragma once
-
-#include <gdk/gdk.h>
-
-// Wraps a GdkRegion. This class provides the same methods as ScopedGDIObject in
-// scoped_handle_win.
-class ScopedRegion {
- public:
- ScopedRegion() : region_(NULL) {}
- explicit ScopedRegion(GdkRegion* region) : region_(region) {}
-
- ~ScopedRegion() {
- Close();
- }
-
- void Set(GdkRegion* region) {
- Close();
-
- region_ = region;
- }
-
- GdkRegion* Get() {
- return region_;
- }
-
- GdkRegion* release() {
- GdkRegion* region = region_;
- region_ = NULL;
- return region;
- }
-
- private:
- void Close() {
- if (region_) {
- gdk_region_destroy(region_);
- region_ = NULL;
- }
- }
-
- GdkRegion* region_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedRegion);
-};
-
-#endif // APP_SCOPED_HANDLE_GTK_H_
« no previous file with comments | « app/message_box_flags.h ('k') | app/surface/transport_dib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698