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

Side by Side Diff: chrome/browser/ui/gtk/panels/panel_gtk.h

Issue 16294002: Make docked panel always on top for Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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_PANELS_PANEL_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void SetBoundsInternal(const gfx::Rect& bounds); 121 void SetBoundsInternal(const gfx::Rect& bounds);
122 122
123 void LoadingAnimationCallback(); 123 void LoadingAnimationCallback();
124 124
125 // Returns the size of the window frame around the client content area. 125 // Returns the size of the window frame around the client content area.
126 gfx::Size GetNonClientFrameSize() const; 126 gfx::Size GetNonClientFrameSize() const;
127 127
128 // Invalidate window to force repaint. 128 // Invalidate window to force repaint.
129 void InvalidateWindow(); 129 void InvalidateWindow();
130 130
131 void UpdateWindowAlwaysOnTopState();
132
131 // Callback for accelerator activation. |user_data| stores the command id 133 // Callback for accelerator activation. |user_data| stores the command id
132 // of the matched accelerator. 134 // of the matched accelerator.
133 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group, 135 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group,
134 GObject* acceleratable, 136 GObject* acceleratable,
135 guint keyval, 137 guint keyval,
136 GdkModifierType modifier, 138 GdkModifierType modifier,
137 void* user_data); 139 void* user_data);
138 140
139 CHROMEGTK_CALLBACK_1(PanelGtk, gboolean, OnMainWindowDeleteEvent, 141 CHROMEGTK_CALLBACK_1(PanelGtk, gboolean, OnMainWindowDeleteEvent,
140 GdkEvent*); 142 GdkEvent*);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // The container for the titlebar. 215 // The container for the titlebar.
214 scoped_ptr<PanelTitlebarGtk> titlebar_; 216 scoped_ptr<PanelTitlebarGtk> titlebar_;
215 217
216 // Indicates how the window corner should be rendered, rounded or not. 218 // Indicates how the window corner should be rendered, rounded or not.
217 panel::CornerStyle corner_style_; 219 panel::CornerStyle corner_style_;
218 220
219 DISALLOW_COPY_AND_ASSIGN(PanelGtk); 221 DISALLOW_COPY_AND_ASSIGN(PanelGtk);
220 }; 222 };
221 223
222 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ 224 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/panels/panel_gtk.cc » ('j') | chrome/browser/ui/gtk/panels/panel_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698