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

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

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/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.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 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <string> 10 #include <string>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // in a view based Window. 286 // in a view based Window.
287 void ShowDialog(GtkWidget* dialog); 287 void ShowDialog(GtkWidget* dialog);
288 void ShowDialogWithLocalizedSize(GtkWidget* dialog, 288 void ShowDialogWithLocalizedSize(GtkWidget* dialog,
289 int width_id, 289 int width_id,
290 int height_id, 290 int height_id,
291 bool resizeable); 291 bool resizeable);
292 void ShowDialogWithMinLocalizedWidth(GtkWidget* dialog, 292 void ShowDialogWithMinLocalizedWidth(GtkWidget* dialog,
293 int width_id); 293 int width_id);
294 294
295 // Wrapper to present a window. On Linux, it just calls gtk_window_present or 295 // Wrapper to present a window. On Linux, it just calls gtk_window_present or
296 // gtk_window_present_with_time for non-zero timestamp. For ChromeOS, it first 296 // gtk_window_present_with_time for non-zero timestamp.
297 // finds the host window of the dialog contents and then present it.
298 void PresentWindow(GtkWidget* window, int timestamp); 297 void PresentWindow(GtkWidget* window, int timestamp);
299 298
300 // Get real window for given dialog. On ChromeOS, this gives the native dialog
301 // host window. On Linux, it merely returns the passed in dialog.
302 GtkWindow* GetDialogWindow(GtkWidget* dialog);
303
304 // Gets dialog window bounds. 299 // Gets dialog window bounds.
305 gfx::Rect GetDialogBounds(GtkWidget* dialog); 300 gfx::Rect GetDialogBounds(GtkWidget* dialog);
306 301
307 // Returns the stock menu item label for the "preferences" item - returns an 302 // Returns the stock menu item label for the "preferences" item - returns an
308 // empty string if no stock item found. 303 // empty string if no stock item found.
309 string16 GetStockPreferencesMenuLabel(); 304 string16 GetStockPreferencesMenuLabel();
310 305
311 // Checks whether a widget is actually visible, i.e. whether it and all its 306 // Checks whether a widget is actually visible, i.e. whether it and all its
312 // ancestors up to its toplevel are visible. 307 // ancestors up to its toplevel are visible.
313 bool IsWidgetAncestryVisible(GtkWidget* widget); 308 bool IsWidgetAncestryVisible(GtkWidget* widget);
(...skipping 17 matching lines...) Expand all
331 void ApplyMessageDialogQuirks(GtkWidget* dialog); 326 void ApplyMessageDialogQuirks(GtkWidget* dialog);
332 327
333 // Performs Cut/Copy/Paste operation on the |window|. 328 // Performs Cut/Copy/Paste operation on the |window|.
334 void DoCut(BrowserWindow* window); 329 void DoCut(BrowserWindow* window);
335 void DoCopy(BrowserWindow* window); 330 void DoCopy(BrowserWindow* window);
336 void DoPaste(BrowserWindow* window); 331 void DoPaste(BrowserWindow* window);
337 332
338 } // namespace gtk_util 333 } // namespace gtk_util
339 334
340 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 335 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698