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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698