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

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

Issue 8165016: Simple clipboard support for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 2 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 "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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 392
393 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { 393 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const {
394 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); 394 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView());
395 } 395 }
396 396
397 //////////////////////////////////////////////////////////////////////////////// 397 ////////////////////////////////////////////////////////////////////////////////
398 // NativeWidgetAura, views::InputMethodDelegate implementation: 398 // NativeWidgetAura, views::InputMethodDelegate implementation:
399 399
400 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { 400 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) {
401 NOTIMPLEMENTED(); 401 delegate_->OnKeyEvent(key);
402 } 402 }
403 403
404 //////////////////////////////////////////////////////////////////////////////// 404 ////////////////////////////////////////////////////////////////////////////////
405 // NativeWidgetAura, aura::WindowDelegate implementation: 405 // NativeWidgetAura, aura::WindowDelegate implementation:
406 406
407 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, 407 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds,
408 const gfx::Rect& new_bounds) { 408 const gfx::Rect& new_bounds) {
409 if (old_bounds.size() != new_bounds.size()) 409 if (old_bounds.size() != new_bounds.size())
410 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); 410 delegate_->OnNativeWidgetSizeChanged(new_bounds.size());
411 } 411 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 555 }
556 556
557 // static 557 // static
558 bool NativeWidgetPrivate::IsMouseButtonDown() { 558 bool NativeWidgetPrivate::IsMouseButtonDown() {
559 NOTIMPLEMENTED(); 559 NOTIMPLEMENTED();
560 return false; 560 return false;
561 } 561 }
562 562
563 } // namespace internal 563 } // namespace internal
564 } // namespace views 564 } // namespace views
OLDNEW
« ui/base/clipboard/clipboard_aura.cc ('K') | « views/events/event_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698