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

Side by Side Diff: chrome/browser/ui/views/ash/panel_view_aura.cc

Issue 10795005: views: Inherit from views::WidgetDelegateView in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/views/ash/panel_view_aura.h" 5 #include "chrome/browser/ui/views/ash/panel_view_aura.h"
6 6
7 #include "ash/wm/panel_frame_view.h" 7 #include "ash/wm/panel_frame_view.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" 10 #include "chrome/browser/extensions/extension_function_dispatcher.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 351 }
352 352
353 views::View* PanelViewAura::GetInitiallyFocusedView() { 353 views::View* PanelViewAura::GetInitiallyFocusedView() {
354 return this; 354 return this;
355 } 355 }
356 356
357 bool PanelViewAura::ShouldShowWindowTitle() const { 357 bool PanelViewAura::ShouldShowWindowTitle() const {
358 return true; 358 return true;
359 } 359 }
360 360
361 views::Widget* PanelViewAura::GetWidget() {
362 return View::GetWidget();
363 }
364
365 const views::Widget* PanelViewAura::GetWidget() const {
366 return View::GetWidget();
367 }
368
369 views::NonClientFrameView* PanelViewAura::CreateNonClientFrameView( 361 views::NonClientFrameView* PanelViewAura::CreateNonClientFrameView(
370 views::Widget* widget) { 362 views::Widget* widget) {
371 return new ash::PanelFrameView(widget); 363 return new ash::PanelFrameView(widget);
372 } 364 }
373 365
374 // BaseWindow implementation: 366 // BaseWindow implementation:
375 367
376 bool PanelViewAura::IsActive() const { 368 bool PanelViewAura::IsActive() const {
377 return GetWidget()->IsActive(); 369 return GetWidget()->IsActive();
378 } 370 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 438 }
447 439
448 void PanelViewAura::FlashFrame(bool flash) { 440 void PanelViewAura::FlashFrame(bool flash) {
449 // TODO(stevenjb): Implement 441 // TODO(stevenjb): Implement
450 NOTIMPLEMENTED(); 442 NOTIMPLEMENTED();
451 } 443 }
452 444
453 bool PanelViewAura::IsAlwaysOnTop() const { 445 bool PanelViewAura::IsAlwaysOnTop() const {
454 return true; 446 return true;
455 } 447 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698