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

Side by Side Diff: chrome/browser/ui/gtk/gtk_util.cc

Issue 10008058: Remove obsolete chromeos specific code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.h ('k') | chrome/browser/ui/gtk/simple_message_box_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/gtk/gtk_util.h" 5 #include "chrome/browser/ui/gtk/gtk_util.h"
6 6
7 #include <cairo/cairo.h> 7 #include <cairo/cairo.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cstdarg> 10 #include <cstdarg>
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 gtk_widget_set_size_request(dialog, width, -1); 1058 gtk_widget_set_size_request(dialog, width, -1);
1059 } 1059 }
1060 1060
1061 void PresentWindow(GtkWidget* window, int timestamp) { 1061 void PresentWindow(GtkWidget* window, int timestamp) {
1062 if (timestamp) 1062 if (timestamp)
1063 gtk_window_present_with_time(GTK_WINDOW(window), timestamp); 1063 gtk_window_present_with_time(GTK_WINDOW(window), timestamp);
1064 else 1064 else
1065 gtk_window_present(GTK_WINDOW(window)); 1065 gtk_window_present(GTK_WINDOW(window));
1066 } 1066 }
1067 1067
1068 GtkWindow* GetDialogWindow(GtkWidget* dialog) {
1069 return GTK_WINDOW(dialog);
1070 }
1071
1072 gfx::Rect GetDialogBounds(GtkWidget* dialog) { 1068 gfx::Rect GetDialogBounds(GtkWidget* dialog) {
1073 gint x = 0, y = 0, width = 1, height = 1; 1069 gint x = 0, y = 0, width = 1, height = 1;
1074 gtk_window_get_position(GTK_WINDOW(dialog), &x, &y); 1070 gtk_window_get_position(GTK_WINDOW(dialog), &x, &y);
1075 gtk_window_get_size(GTK_WINDOW(dialog), &width, &height); 1071 gtk_window_get_size(GTK_WINDOW(dialog), &width, &height);
1076 1072
1077 return gfx::Rect(x, y, width, height); 1073 return gfx::Rect(x, y, width, height);
1078 } 1074 }
1079 1075
1080 string16 GetStockPreferencesMenuLabel() { 1076 string16 GetStockPreferencesMenuLabel() {
1081 GtkStockItem stock_item; 1077 GtkStockItem stock_item;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 1157
1162 void DoCopy(BrowserWindow* window) { 1158 void DoCopy(BrowserWindow* window) {
1163 DoCutCopyPaste(window, &RenderWidgetHost::Copy, "copy-clipboard"); 1159 DoCutCopyPaste(window, &RenderWidgetHost::Copy, "copy-clipboard");
1164 } 1160 }
1165 1161
1166 void DoPaste(BrowserWindow* window) { 1162 void DoPaste(BrowserWindow* window) {
1167 DoCutCopyPaste(window, &RenderWidgetHost::Paste, "paste-clipboard"); 1163 DoCutCopyPaste(window, &RenderWidgetHost::Paste, "paste-clipboard");
1168 } 1164 }
1169 1165
1170 } // namespace gtk_util 1166 } // namespace gtk_util
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.h ('k') | chrome/browser/ui/gtk/simple_message_box_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698