blob: 5255cd18bc4e2a5cf1d6bb1afb6e2ef12c91713a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (c) 2011 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.
// Contains functions used by BrowserMain() that are gtk-specific.
#ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
#define CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
// Installs the X11 error handlers for the browser process used during
// startup. They simply print error messages and exit because
// we can't shutdown properly while creating and initializing services.
void SetBrowserX11ErrorHandlersPreEarlyInitialization();
// Installs the X11 error handlers for the browser process after the
// main message loop has started. This will allow us to exit cleanly
// if X exits before us.
void SetBrowserX11ErrorHandlersPostMainMessageLoopStart();
// Installs empty X11 error handlers. This avoids calling into the message-loop
// in case an X11 erro happens while the message-loop is being destroyed.
void UnsetBrowserX11ErrorHandlers();
#endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
|