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..d39178868cf4e9ccbc680bbbacea7f80661a02c9 |
--- /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_util { |
Evan Stade
2012/08/10 21:16:59
consider giving this namespace a unique name.
jennb
2012/08/11 05:07:20
Done.
|
+ |
+// 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_util |
+ |
+#endif // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ |
+ |