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

Unified Diff: chrome/browser/ui/gtk/gtk_util.h

Issue 10831226: Panels refactor: Support browserless panels on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/gtk_util.h
diff --git a/chrome/browser/ui/gtk/gtk_util.h b/chrome/browser/ui/gtk/gtk_util.h
index 75d7ee35af74506489364784e1d0ba96b16a8cef..ffc719152ec995b583d46db9cf07566fec35b01e 100644
--- a/chrome/browser/ui/gtk/gtk_util.h
+++ b/chrome/browser/ui/gtk/gtk_util.h
@@ -28,6 +28,10 @@ namespace gfx {
class Image;
}
+namespace content {
+class WebContents;
+}
+
namespace gtk_util {
// Create a table of labeled controls, using proper spacing and alignment.
@@ -308,10 +312,17 @@ void InitLabelSizeRequestAndEllipsizeMode(GtkWidget* label);
// gtk_message_dialog_new.
void ApplyMessageDialogQuirks(GtkWidget* dialog);
-// Performs Cut/Copy/Paste operation on the |window|.
-void DoCut(BrowserWindow* window);
-void DoCopy(BrowserWindow* window);
-void DoPaste(BrowserWindow* window);
+// 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);
+
+GdkCursorType GdkWindowEdgeToGdkCursorType(GdkWindowEdge edge);
jianli 2012/08/09 00:52:51 nit: add comment. I have no problem to understand
jennb 2012/08/10 18:45:42 Done.
} // namespace gtk_util

Powered by Google App Engine
This is Rietveld 408576698