| Index: chrome/browser/ui/gtk/gtk_window_util.h
|
| diff --git a/chrome/browser/ui/gtk/gtk_window_util.h b/chrome/browser/ui/gtk/gtk_window_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8783f1c3a615a5ffde01b9e4a893c366f7afea0a
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/gtk/gtk_window_util.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 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 CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
|
| +#define CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
|
| +
|
| +#include <gtk/gtk.h>
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace gtk_window_util {
|
| +
|
| +// Performs Cut/Copy/Paste operation on the |window|'s |web_contents|.
|
| +void DoCut(GtkWindow* window, content::WebContents* web_contents);
|
| +void DoCopy(GtkWindow* window, content::WebContents* web_contents);
|
| +void DoPaste(GtkWindow* window, content::WebContents* web_contents);
|
| +
|
| +// Ubuntu patches their version of GTK+ to that there is always a
|
| +// gripper in the bottom right corner of the window. We always need to
|
| +// disable this feature since we can't communicate this to WebKit easily.
|
| +void DisableResizeGrip(GtkWindow* window);
|
| +
|
| +// Returns the resize cursor corresponding to the window |edge|.
|
| +GdkCursorType GdkWindowEdgeToGdkCursorType(GdkWindowEdge edge);
|
| +
|
| +} // namespace gtk_window_util
|
| +
|
| +#endif // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
|
| +
|
|
|