OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/chrome_views_delegate.h" | 5 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // windows. | 472 // windows. |
473 views::LinuxUI* ui = views::LinuxUI::instance(); | 473 views::LinuxUI* ui = views::LinuxUI::instance(); |
474 return maximized && ui && ui->UnityIsRunning(); | 474 return maximized && ui && ui->UnityIsRunning(); |
475 } | 475 } |
476 #endif | 476 #endif |
477 | 477 |
478 ui::ContextFactory* ChromeViewsDelegate::GetContextFactory() { | 478 ui::ContextFactory* ChromeViewsDelegate::GetContextFactory() { |
479 return content::GetContextFactory(); | 479 return content::GetContextFactory(); |
480 } | 480 } |
481 | 481 |
| 482 ui::ContextFactoryPrivate* ChromeViewsDelegate::GetContextFactoryPrivate() { |
| 483 return content::GetContextFactoryPrivate(); |
| 484 } |
| 485 |
482 std::string ChromeViewsDelegate::GetApplicationName() { | 486 std::string ChromeViewsDelegate::GetApplicationName() { |
483 return version_info::GetProductName(); | 487 return version_info::GetProductName(); |
484 } | 488 } |
485 | 489 |
486 #if defined(OS_WIN) | 490 #if defined(OS_WIN) |
487 int ChromeViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, | 491 int ChromeViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, |
488 const base::Closure& callback) { | 492 const base::Closure& callback) { |
489 // Initialize the map with EDGE_BOTTOM. This is important, as if we return an | 493 // Initialize the map with EDGE_BOTTOM. This is important, as if we return an |
490 // initial value of 0 (no auto-hide edges) then we'll go fullscreen and | 494 // initial value of 0 (no auto-hide edges) then we'll go fullscreen and |
491 // windows will automatically remove WS_EX_TOPMOST from the appbar resulting | 495 // windows will automatically remove WS_EX_TOPMOST from the appbar resulting |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 return ViewsDelegate::GetDialogFrameViewInsets(); | 558 return ViewsDelegate::GetDialogFrameViewInsets(); |
555 } | 559 } |
556 | 560 |
557 #if !defined(USE_ASH) | 561 #if !defined(USE_ASH) |
558 views::Widget::InitParams::WindowOpacity | 562 views::Widget::InitParams::WindowOpacity |
559 ChromeViewsDelegate::GetOpacityForInitParams( | 563 ChromeViewsDelegate::GetOpacityForInitParams( |
560 const views::Widget::InitParams& params) { | 564 const views::Widget::InitParams& params) { |
561 return views::Widget::InitParams::OPAQUE_WINDOW; | 565 return views::Widget::InitParams::OPAQUE_WINDOW; |
562 } | 566 } |
563 #endif | 567 #endif |
OLD | NEW |