OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ |
| 7 |
| 8 #include <gtk/gtk.h> |
| 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 namespace gtk_window_util { |
| 15 |
| 16 // Performs Cut/Copy/Paste operation on the |window|'s |web_contents|. |
| 17 void DoCut(GtkWindow* window, content::WebContents* web_contents); |
| 18 void DoCopy(GtkWindow* window, content::WebContents* web_contents); |
| 19 void DoPaste(GtkWindow* window, content::WebContents* web_contents); |
| 20 |
| 21 // Ubuntu patches their version of GTK+ to that there is always a |
| 22 // gripper in the bottom right corner of the window. We always need to |
| 23 // disable this feature since we can't communicate this to WebKit easily. |
| 24 void DisableResizeGrip(GtkWindow* window); |
| 25 |
| 26 // Returns the resize cursor corresponding to the window |edge|. |
| 27 GdkCursorType GdkWindowEdgeToGdkCursorType(GdkWindowEdge edge); |
| 28 |
| 29 } // namespace gtk_window_util |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_ |
| 32 |
OLD | NEW |