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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "chrome/browser/ui/panels/panel.h" 7 #include "chrome/browser/ui/panels/panel.h"
8 #include "chrome/browser/ui/panels/panel_manager.h" 8 #include "chrome/browser/ui/panels/panel_manager.h"
9 #include "ui/base/dragdrop/gtk_dnd_util.h" 9 #include "ui/base/dragdrop/gtk_dnd_util.h"
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { 176 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const {
177 return browser(); 177 return browser();
178 } 178 }
179 179
180 void PanelBrowserWindowGtk::DestroyPanelBrowser() { 180 void PanelBrowserWindowGtk::DestroyPanelBrowser() {
181 DestroyBrowser(); 181 DestroyBrowser();
182 } 182 }
183 183
184 gfx::Size PanelBrowserWindowGtk::GetNonClientAreaExtent() const {
185 NOTIMPLEMENTED();
186 return gfx::Size();
187 }
188
189 int PanelBrowserWindowGtk::GetRestoredHeight() const {
190 NOTIMPLEMENTED();
191 return 0;
192 }
193
194 void PanelBrowserWindowGtk::SetRestoredHeight(int height) {
195 NOTIMPLEMENTED();
196 }
197
184 NativePanelTesting* PanelBrowserWindowGtk::GetNativePanelTesting() { 198 NativePanelTesting* PanelBrowserWindowGtk::GetNativePanelTesting() {
185 return this; 199 return this;
186 } 200 }
187 201
188 void PanelBrowserWindowGtk::SetBoundsImpl() { 202 void PanelBrowserWindowGtk::SetBoundsImpl() {
189 gtk_window_move(window_, bounds_.x(), bounds_.y()); 203 gtk_window_move(window_, bounds_.x(), bounds_.y());
190 gtk_window_resize(window(), bounds_.width(), bounds_.height()); 204 gtk_window_resize(window(), bounds_.width(), bounds_.height());
191 } 205 }
192 206
193 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { 207 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // if the user ended the drag with space or enter, we don't get a follow up 322 // if the user ended the drag with space or enter, we don't get a follow up
309 // event to tell us the drag has finished (either a drag-failed or a 323 // event to tell us the drag has finished (either a drag-failed or a
310 // drag-end). We post a task, instead of calling EndDrag right here, to give 324 // drag-end). We post a task, instead of calling EndDrag right here, to give
311 // GTK+ a chance to send the drag-failed event with the right status. If 325 // GTK+ a chance to send the drag-failed event with the right status. If
312 // GTK+ does send the drag-failed event, we cancel the task. 326 // GTK+ does send the drag-failed event, we cancel the task.
313 MessageLoop::current()->PostTask(FROM_HERE, 327 MessageLoop::current()->PostTask(FROM_HERE,
314 drag_end_factory_.NewRunnableMethod( 328 drag_end_factory_.NewRunnableMethod(
315 &PanelBrowserWindowGtk::EndDrag, false)); 329 &PanelBrowserWindowGtk::EndDrag, false));
316 return TRUE; 330 return TRUE;
317 } 331 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698