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

Side by Side Diff: ui/base/x/x11_error_tracker_gtk.cc

Issue 24160005: Move ui/base/x/x11_error_tracker to base/x11. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 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
« no previous file with comments | « ui/base/x/x11_error_tracker.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #include "ui/base/x/x11_error_tracker.h"
6
7 #include <gdk/gdkx.h>
8
9 #include "base/logging.h"
10
11 namespace ui {
12
13 X11ErrorTracker::X11ErrorTracker() {
14 gdk_error_trap_push();
15 }
16
17 X11ErrorTracker::~X11ErrorTracker() {
18 gdk_error_trap_pop();
19 }
20
21 bool X11ErrorTracker::FoundNewError() {
22 gdk_flush();
23 bool found_error = gdk_error_trap_pop() != 0;
24
25 gdk_error_trap_push();
26 return found_error;
27 }
28
29 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/x/x11_error_tracker.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698