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

Side by Side Diff: content/shell/browser/shell_views.cc

Issue 108193005: Fixing opacity for browser frame window on ASH/Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved logic to OnBeforeWidgetInit 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/browser/shell.h" 5 #include "content/shell/browser/shell.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/browser/web_contents_view.h" 10 #include "content/public/browser/web_contents_view.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 virtual ~ShellViewsDelegateAura() { 51 virtual ~ShellViewsDelegateAura() {
52 } 52 }
53 53
54 void SetUseTransparentWindows(bool transparent) { 54 void SetUseTransparentWindows(bool transparent) {
55 use_transparent_windows_ = transparent; 55 use_transparent_windows_ = transparent;
56 } 56 }
57 57
58 // Overridden from views::TestViewsDelegate: 58 // Overridden from views::TestViewsDelegate:
59 virtual bool UseTransparentWindows() const OVERRIDE { 59 virtual bool UseTransparentWindows(
60 views::Widget::InitParams* params) const OVERRIDE {
60 return use_transparent_windows_; 61 return use_transparent_windows_;
61 } 62 }
62 63
63 private: 64 private:
64 bool use_transparent_windows_; 65 bool use_transparent_windows_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(ShellViewsDelegateAura); 67 DISALLOW_COPY_AND_ASSIGN(ShellViewsDelegateAura);
67 }; 68 };
68 69
69 // Maintain the UI controls and web view for content shell 70 // Maintain the UI controls and web view for content shell
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 389 }
389 390
390 void Shell::PlatformSetTitle(const base::string16& title) { 391 void Shell::PlatformSetTitle(const base::string16& title) {
391 ShellWindowDelegateView* delegate_view = 392 ShellWindowDelegateView* delegate_view =
392 static_cast<ShellWindowDelegateView*>(window_widget_->widget_delegate()); 393 static_cast<ShellWindowDelegateView*>(window_widget_->widget_delegate());
393 delegate_view->SetWindowTitle(title); 394 delegate_view->SetWindowTitle(title);
394 window_widget_->UpdateWindowTitle(); 395 window_widget_->UpdateWindowTitle();
395 } 396 }
396 397
397 } // namespace content 398 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698