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

Side by Side Diff: views/widget/native_widget_aura.cc

Issue 8416053: Gets Bubble to work on aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/bubble/bubble.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/desktop.h" 8 #include "ui/aura/desktop.h"
9 #include "ui/aura/event.h" 9 #include "ui/aura/event.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 void NativeWidgetAura::SetFullscreen(bool fullscreen) { 381 void NativeWidgetAura::SetFullscreen(bool fullscreen) {
382 fullscreen ? window_->Fullscreen() : window_->Restore(); 382 fullscreen ? window_->Fullscreen() : window_->Restore();
383 } 383 }
384 384
385 bool NativeWidgetAura::IsFullscreen() const { 385 bool NativeWidgetAura::IsFullscreen() const {
386 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; 386 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN;
387 } 387 }
388 388
389 void NativeWidgetAura::SetOpacity(unsigned char opacity) { 389 void NativeWidgetAura::SetOpacity(unsigned char opacity) {
390 window_->layer()->SetOpacity(opacity / 255.0); 390 window_->layer()->SetOpacity(opacity / 255.0);
391 window_->layer()->ScheduleDraw();
Ben Goodger (Google) 2011/10/31 18:21:29 Shouldn't Layer::SetOpacity do this implicitly?
sky 2011/10/31 20:32:31 Good idea.
391 } 392 }
392 393
393 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { 394 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) {
394 NOTIMPLEMENTED(); 395 NOTIMPLEMENTED();
395 } 396 }
396 397
397 bool NativeWidgetAura::IsAccessibleWidget() const { 398 bool NativeWidgetAura::IsAccessibleWidget() const {
398 NOTIMPLEMENTED(); 399 NOTIMPLEMENTED();
399 return false; 400 return false;
400 } 401 }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 } 643 }
643 644
644 // static 645 // static
645 bool NativeWidgetPrivate::IsMouseButtonDown() { 646 bool NativeWidgetPrivate::IsMouseButtonDown() {
646 NOTIMPLEMENTED(); 647 NOTIMPLEMENTED();
647 return false; 648 return false;
648 } 649 }
649 650
650 } // namespace internal 651 } // namespace internal
651 } // namespace views 652 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bubble/bubble.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698