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

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

Issue 7005006: Add options menu on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/panels/panel_manager.h" 9 #include "chrome/browser/ui/panels/panel_manager.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 void Panel::SetPanelBounds(const gfx::Rect& bounds) { 26 void Panel::SetPanelBounds(const gfx::Rect& bounds) {
27 if (bounds_ == bounds) 27 if (bounds_ == bounds)
28 return; 28 return;
29 bounds_ = bounds; 29 bounds_ = bounds;
30 browser_window_->SetBounds(bounds); 30 browser_window_->SetBounds(bounds);
31 } 31 }
32 32
33 void Panel::Minimize() { 33 void Panel::Minimize() {
34 if (minimized_)
35 return;
36 minimized_ = true;
37
34 NOTIMPLEMENTED(); 38 NOTIMPLEMENTED();
35 } 39 }
36 40
37 void Panel::Restore() { 41 void Panel::Restore() {
42 if (!minimized_)
43 return;
44 minimized_ = false;
45
38 NOTIMPLEMENTED(); 46 NOTIMPLEMENTED();
39 } 47 }
40 48
41 void Panel::Show() { 49 void Panel::Show() {
42 browser_window_->Show(); 50 browser_window_->Show();
43 } 51 }
44 52
45 void Panel::ShowInactive() { 53 void Panel::ShowInactive() {
46 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
47 } 55 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 362
355 #if defined(OS_CHROMEOS) 363 #if defined(OS_CHROMEOS)
356 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { 364 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) {
357 NOTIMPLEMENTED(); 365 NOTIMPLEMENTED();
358 } 366 }
359 #endif 367 #endif
360 368
361 void Panel::DestroyBrowser() { 369 void Panel::DestroyBrowser() {
362 NOTIMPLEMENTED(); 370 NOTIMPLEMENTED();
363 } 371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698