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

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

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 24 matching lines...) Expand all
35 #define GDK_COLOR_RGB(r, g, b) {0, r * kSkiaToGDKMultiplier, \ 35 #define GDK_COLOR_RGB(r, g, b) {0, r * kSkiaToGDKMultiplier, \
36 g * kSkiaToGDKMultiplier, b * kSkiaToGDKMultiplier} 36 g * kSkiaToGDKMultiplier, b * kSkiaToGDKMultiplier}
37 37
38 namespace event_utils { 38 namespace event_utils {
39 39
40 // Translates event flags into what kind of disposition they represent. 40 // Translates event flags into what kind of disposition they represent.
41 // For example, a middle click would mean to open a background tab. 41 // For example, a middle click would mean to open a background tab.
42 // event_flags are the state in the GdkEvent structure. 42 // event_flags are the state in the GdkEvent structure.
43 WindowOpenDisposition DispositionFromEventFlags(guint state); 43 WindowOpenDisposition DispositionFromEventFlags(guint state);
44 44
45 // Translates event flags into platform independent event flags.
46 int GetEventFlagsFromGdkState(guint state);
47
45 } // namespace event_utils 48 } // namespace event_utils
46 49
47 namespace gtk_util { 50 namespace gtk_util {
48 51
49 extern const GdkColor kGdkWhite; 52 extern const GdkColor kGdkWhite;
50 extern const GdkColor kGdkGray; 53 extern const GdkColor kGdkGray;
51 extern const GdkColor kGdkBlack; 54 extern const GdkColor kGdkBlack;
52 extern const GdkColor kGdkGreen; 55 extern const GdkColor kGdkGreen;
53 56
54 // Constants relating to the layout of dialog windows: 57 // Constants relating to the layout of dialog windows:
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void ApplyMessageDialogQuirks(GtkWidget* dialog); 374 void ApplyMessageDialogQuirks(GtkWidget* dialog);
372 375
373 // Performs Cut/Copy/Paste operation on the |window|. 376 // Performs Cut/Copy/Paste operation on the |window|.
374 void DoCut(BrowserWindow* window); 377 void DoCut(BrowserWindow* window);
375 void DoCopy(BrowserWindow* window); 378 void DoCopy(BrowserWindow* window);
376 void DoPaste(BrowserWindow* window); 379 void DoPaste(BrowserWindow* window);
377 380
378 } // namespace gtk_util 381 } // namespace gtk_util
379 382
380 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 383 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698