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

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

Issue 328103002: MacViews: Provide CreateNativeWidget and a stub NativeThemeMac in NativeWidgetMac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cite bug Created 6 years, 6 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
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('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 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 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 8
9 #include "ui/gfx/font_list.h" 9 #include "ui/gfx/font_list.h"
10 #include "ui/native_theme/native_theme.h"
10 11
11 namespace views { 12 namespace views {
12 13
13 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
14 // NativeWidgetMac, public: 15 // NativeWidgetMac, public:
15 16
16 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate) 17 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate)
17 : delegate_(delegate), window_(nil) { 18 : delegate_(delegate), window_(nil) {
18 } 19 }
19 20
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 341
341 void NativeWidgetMac::EndMoveLoop() { 342 void NativeWidgetMac::EndMoveLoop() {
342 NOTIMPLEMENTED(); 343 NOTIMPLEMENTED();
343 } 344 }
344 345
345 void NativeWidgetMac::SetVisibilityChangedAnimationsEnabled(bool value) { 346 void NativeWidgetMac::SetVisibilityChangedAnimationsEnabled(bool value) {
346 NOTIMPLEMENTED(); 347 NOTIMPLEMENTED();
347 } 348 }
348 349
349 ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const { 350 ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const {
350 NOTIMPLEMENTED(); 351 return ui::NativeTheme::instance();
351 return NULL;
352 } 352 }
353 353
354 void NativeWidgetMac::OnRootViewLayout() const { 354 void NativeWidgetMac::OnRootViewLayout() const {
355 NOTIMPLEMENTED(); 355 NOTIMPLEMENTED();
356 } 356 }
357 357
358 void NativeWidgetMac::RepostNativeEvent(gfx::NativeEvent native_event) { 358 void NativeWidgetMac::RepostNativeEvent(gfx::NativeEvent native_event) {
359 NOTIMPLEMENTED(); 359 NOTIMPLEMENTED();
360 } 360 }
361 361
362 //////////////////////////////////////////////////////////////////////////////// 362 ////////////////////////////////////////////////////////////////////////////////
363 // Widget, public: 363 // Widget, public:
364 364
365 bool Widget::ConvertRect(const Widget* source, 365 bool Widget::ConvertRect(const Widget* source,
366 const Widget* target, 366 const Widget* target,
367 gfx::Rect* rect) { 367 gfx::Rect* rect) {
368 return false; 368 return false;
369 } 369 }
370 370
371 namespace internal { 371 namespace internal {
372 372
373 //////////////////////////////////////////////////////////////////////////////// 373 ////////////////////////////////////////////////////////////////////////////////
374 // internal::NativeWidgetPrivate, public: 374 // internal::NativeWidgetPrivate, public:
375 375
376 // static 376 // static
377 NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget( 377 NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
378 internal::NativeWidgetDelegate* delegate) { 378 internal::NativeWidgetDelegate* delegate) {
379 NOTIMPLEMENTED(); 379 return new NativeWidgetMac(delegate);
380 return NULL;
381 } 380 }
382 381
383 // static 382 // static
384 NativeWidgetPrivate* NativeWidgetPrivate::GetNativeWidgetForNativeView( 383 NativeWidgetPrivate* NativeWidgetPrivate::GetNativeWidgetForNativeView(
385 gfx::NativeView native_view) { 384 gfx::NativeView native_view) {
386 NOTIMPLEMENTED(); 385 NOTIMPLEMENTED();
387 return NULL; 386 return NULL;
388 } 387 }
389 388
390 // static 389 // static
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 431 }
433 432
434 // static 433 // static
435 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 434 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
436 NOTIMPLEMENTED(); 435 NOTIMPLEMENTED();
437 return gfx::FontList(); 436 return gfx::FontList();
438 } 437 }
439 438
440 } // namespace internal 439 } // namespace internal
441 } // namespace views 440 } // namespace views
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698