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

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

Issue 789763002: MacViews: Implement capture using NSEvent local+global monitors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140812-MacViews-LAYERS2-PRESQUASH
Patch Set: fix sorting Created 6 years 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_interactive_uitest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 NOTIMPLEMENTED(); 202 NOTIMPLEMENTED();
203 return NULL; 203 return NULL;
204 } 204 }
205 205
206 TooltipManager* NativeWidgetMac::GetTooltipManager() const { 206 TooltipManager* NativeWidgetMac::GetTooltipManager() const {
207 NOTIMPLEMENTED(); 207 NOTIMPLEMENTED();
208 return NULL; 208 return NULL;
209 } 209 }
210 210
211 void NativeWidgetMac::SetCapture() { 211 void NativeWidgetMac::SetCapture() {
212 NOTIMPLEMENTED(); 212 if (bridge_ && !bridge_->HasCapture())
213 bridge_->AcquireCapture();
213 } 214 }
214 215
215 void NativeWidgetMac::ReleaseCapture() { 216 void NativeWidgetMac::ReleaseCapture() {
216 NOTIMPLEMENTED(); 217 if (bridge_)
218 bridge_->ReleaseCapture();
217 } 219 }
218 220
219 bool NativeWidgetMac::HasCapture() const { 221 bool NativeWidgetMac::HasCapture() const {
220 NOTIMPLEMENTED(); 222 return bridge_ && bridge_->HasCapture();
221 return false;
222 } 223 }
223 224
224 InputMethod* NativeWidgetMac::CreateInputMethod() { 225 InputMethod* NativeWidgetMac::CreateInputMethod() {
225 return bridge_ ? bridge_->CreateInputMethod() : NULL; 226 return bridge_ ? bridge_->CreateInputMethod() : NULL;
226 } 227 }
227 228
228 internal::InputMethodDelegate* NativeWidgetMac::GetInputMethodDelegate() { 229 internal::InputMethodDelegate* NativeWidgetMac::GetInputMethodDelegate() {
229 return bridge_.get(); 230 return bridge_.get();
230 } 231 }
231 232
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 640 }
640 641
641 // static 642 // static
642 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
643 NOTIMPLEMENTED(); 644 NOTIMPLEMENTED();
644 return gfx::FontList(); 645 return gfx::FontList();
645 } 646 }
646 647
647 } // namespace internal 648 } // namespace internal
648 } // namespace views 649 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_interactive_uitest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698