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

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

Issue 23918002: Switch to doing user-resizing via system for panels on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to reland Created 7 years, 3 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 #include "chrome/browser/ui/gtk/panels/panel_gtk.h" 5 #include "chrome/browser/ui/gtk/panels/panel_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 #include <X11/XF86keysym.h> 9 #include <X11/XF86keysym.h>
10 10
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 // from the panel UI. 1061 // from the panel UI.
1062 gtk_window_set_skip_taskbar_hint(window_, on_top); 1062 gtk_window_set_skip_taskbar_hint(window_, on_top);
1063 1063
1064 // Show always-on-top windows on all the virtual desktops. 1064 // Show always-on-top windows on all the virtual desktops.
1065 if (on_top) 1065 if (on_top)
1066 gtk_window_stick(window_); 1066 gtk_window_stick(window_);
1067 else 1067 else
1068 gtk_window_unstick(window_); 1068 gtk_window_unstick(window_);
1069 } 1069 }
1070 1070
1071 void PanelGtk::EnableResizeByMouse(bool enable) {
1072 }
1073
1074 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() { 1071 void PanelGtk::UpdatePanelMinimizeRestoreButtonVisibility() {
1075 titlebar_->UpdateMinimizeRestoreButtonVisibility(); 1072 titlebar_->UpdateMinimizeRestoreButtonVisibility();
1076 } 1073 }
1077 1074
1078 gfx::Size PanelGtk::GetNonClientFrameSize() const { 1075 gfx::Size PanelGtk::GetNonClientFrameSize() const {
1079 GtkAllocation window_allocation; 1076 GtkAllocation window_allocation;
1080 gtk_widget_get_allocation(window_container_, &window_allocation); 1077 gtk_widget_get_allocation(window_container_, &window_allocation);
1081 GtkAllocation contents_allocation; 1078 GtkAllocation contents_allocation;
1082 gtk_widget_get_allocation(contents_expanded_, &contents_allocation); 1079 gtk_widget_get_allocation(contents_expanded_, &contents_allocation);
1083 return gfx::Size(window_allocation.width - contents_allocation.width, 1080 return gfx::Size(window_allocation.width - contents_allocation.width,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 } 1230 }
1234 1231
1235 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { 1232 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const {
1236 return panel_gtk_->corner_style_; 1233 return panel_gtk_->corner_style_;
1237 } 1234 }
1238 1235
1239 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() { 1236 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() {
1240 // Not needed on GTK. 1237 // Not needed on GTK.
1241 return true; 1238 return true;
1242 } 1239 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/panels/panel_gtk.h ('k') | chrome/browser/ui/panels/detached_panel_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698