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

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

Issue 108193005: Fixing opacity for browser frame window on ASH/Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further minor changes Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6
7 #if defined(USE_CHROMEOS)
sky 2013/12/17 15:59:00 You shouldn't need an ifdef here.
Shrikant Kelkar 2013/12/17 18:01:00 Done.
8 views::Widget::InitParams::WindowOpacity
9 ChromeViewsDelegate::InferOpacity(views::Widget::InitParams* params) {
10 if (params->type != views::Widget::InitParams::TYPE_WINDOW &&
11 params->type != views::Widget::InitParams::TYPE_PANEL)
12 // All other windows except TYPE_WINDOW AND TYPE_PANEL should be
sky 2013/12/17 15:59:00 This comment isn't helpful since it just documents
Shrikant Kelkar 2013/12/17 18:01:00 Done.
13 // opaque.
14 return views::Widget::InitParams::OPAQUE_WINDOW;
15 return params->opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
16 }
17 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698