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

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, 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) 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { 187 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const {
188 return browser(); 188 return browser();
189 } 189 }
190 190
191 void PanelBrowserWindowGtk::DestroyPanelBrowser() { 191 void PanelBrowserWindowGtk::DestroyPanelBrowser() {
192 DestroyBrowser(); 192 DestroyBrowser();
193 } 193 }
194 194
195 gfx::Size PanelBrowserWindowGtk::GetNonClientAreaExtent() const {
196 NOTIMPLEMENTED();
197 return gfx::Size();
198 }
199
200 int PanelBrowserWindowGtk::GetRestoredHeight() const {
201 NOTIMPLEMENTED();
202 return 0;
203 }
204
205 void PanelBrowserWindowGtk::SetRestoredHeight(int height) {
206 NOTIMPLEMENTED();
207 }
208
195 void PanelBrowserWindowGtk::SetBoundsImpl() { 209 void PanelBrowserWindowGtk::SetBoundsImpl() {
196 gtk_window_move(window_, bounds_.x(), bounds_.y()); 210 gtk_window_move(window_, bounds_.x(), bounds_.y());
197 gtk_window_resize(window(), bounds_.width(), bounds_.height()); 211 gtk_window_resize(window(), bounds_.width(), bounds_.height());
198 } 212 }
199 213
200 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { 214 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) {
201 // Nothing to do. 215 // Nothing to do.
202 } 216 }
203 217
204 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) { 218 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 GTK_DRAG_RESULT_USER_CANCELLED); 408 GTK_DRAG_RESULT_USER_CANCELLED);
395 MessageLoopForUI::current()->RunAllPending(); 409 MessageLoopForUI::current()->RunAllPending();
396 } 410 }
397 411
398 void NativePanelTestingGtk::FinishDragTitlebar() { 412 void NativePanelTestingGtk::FinishDragTitlebar() {
399 panel_browser_window_gtk_->OnDragFailed( 413 panel_browser_window_gtk_->OnDragFailed(
400 panel_browser_window_gtk_->drag_widget_, NULL, 414 panel_browser_window_gtk_->drag_widget_, NULL,
401 GTK_DRAG_RESULT_NO_TARGET); 415 GTK_DRAG_RESULT_NO_TARGET);
402 MessageLoopForUI::current()->RunAllPending(); 416 MessageLoopForUI::current()->RunAllPending();
403 } 417 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698