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

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

Issue 7011015: Show "About panel" bubble 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"
11 11
12 Panel::Panel(Browser* browser, const gfx::Rect& bounds) 12 Panel::Panel(Browser* browser, const gfx::Rect& bounds)
13 : bounds_(bounds), 13 : bounds_(bounds),
14 originator_(NULL),
jennb 2011/05/12 18:15:51 ordering in .h has originator_ before bounds_
jianli 2011/05/24 00:56:24 originator_ has been removed.
14 minimized_(false) { 15 minimized_(false) {
15 browser_window_.reset(CreateNativePanel(browser, this)); 16 browser_window_.reset(CreateNativePanel(browser, this));
16 } 17 }
17 18
18 Panel::~Panel() { 19 Panel::~Panel() {
19 Close(); 20 Close();
20 } 21 }
21 22
22 PanelManager* Panel::manager() const { 23 PanelManager* Panel::manager() const {
23 return PanelManager::GetInstance(); 24 return PanelManager::GetInstance();
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 NOTIMPLEMENTED(); 364 NOTIMPLEMENTED();
364 return NEW_POPUP; 365 return NEW_POPUP;
365 } 366 }
366 367
367 #if defined(OS_CHROMEOS) 368 #if defined(OS_CHROMEOS)
368 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { 369 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) {
369 NOTIMPLEMENTED(); 370 NOTIMPLEMENTED();
370 } 371 }
371 #endif 372 #endif
372 373
374 Panel* Panel::GetAsPanel() {
375 return this;
376 }
377
373 void Panel::DestroyBrowser() { 378 void Panel::DestroyBrowser() {
374 NOTIMPLEMENTED(); 379 NOTIMPLEMENTED();
375 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698