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

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

Issue 1137653005: MacViews: Implement Tooltips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments Created 5 years, 7 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_unittest.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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { 168 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const {
169 if (bridge_) 169 if (bridge_)
170 return bridge_->GetNativeWindowProperty(name); 170 return bridge_->GetNativeWindowProperty(name);
171 171
172 return nullptr; 172 return nullptr;
173 } 173 }
174 174
175 TooltipManager* NativeWidgetMac::GetTooltipManager() const { 175 TooltipManager* NativeWidgetMac::GetTooltipManager() const {
176 NOTIMPLEMENTED(); 176 if (bridge_)
177 return NULL; 177 return bridge_->tooltip_manager();
178
179 return nullptr;
178 } 180 }
179 181
180 void NativeWidgetMac::SetCapture() { 182 void NativeWidgetMac::SetCapture() {
181 if (bridge_ && !bridge_->HasCapture()) 183 if (bridge_ && !bridge_->HasCapture())
182 bridge_->AcquireCapture(); 184 bridge_->AcquireCapture();
183 } 185 }
184 186
185 void NativeWidgetMac::ReleaseCapture() { 187 void NativeWidgetMac::ReleaseCapture() {
186 if (bridge_) 188 if (bridge_)
187 bridge_->ReleaseCapture(); 189 bridge_->ReleaseCapture();
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 640 }
639 641
640 // static 642 // static
641 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
642 NOTIMPLEMENTED(); 644 NOTIMPLEMENTED();
643 return gfx::FontList(); 645 return gfx::FontList();
644 } 646 }
645 647
646 } // namespace internal 648 } // namespace internal
647 } // namespace views 649 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698