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

Side by Side Diff: ui/views/widget/native_widget_mac.mm

Issue 322893005: MacViews: Add WidgetEventGenerator to abstract platform-specific event generation for tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No inheritance Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/views/widget/native_widget_mac.h" 5 #include "ui/views/widget/native_widget_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/foundation_util.h" 9 #include "base/mac/foundation_util.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 } 582 }
583 583
584 // static 584 // static
585 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, 585 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view,
586 gfx::NativeView new_parent) { 586 gfx::NativeView new_parent) {
587 NOTIMPLEMENTED(); 587 NOTIMPLEMENTED();
588 } 588 }
589 589
590 // static 590 // static
591 bool NativeWidgetPrivate::IsMouseButtonDown() { 591 bool NativeWidgetPrivate::IsMouseButtonDown() {
592 NOTIMPLEMENTED(); 592 return [NSEvent pressedMouseButtons] != 0;
593 return false;
594 } 593 }
595 594
596 // static 595 // static
597 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 596 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
598 NOTIMPLEMENTED(); 597 NOTIMPLEMENTED();
599 return gfx::FontList(); 598 return gfx::FontList();
600 } 599 }
601 600
602 } // namespace internal 601 } // namespace internal
603 } // namespace views 602 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698