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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc

Issue 17494005: linux_aura: Three fixes for switching themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 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
« chrome/chrome_browser.gypi ('K') | « ui/linux_ui/linux_ui.h ('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 (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 "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 void DesktopRootWindowHostX11::SetVisibilityChangedAnimationsEnabled( 612 void DesktopRootWindowHostX11::SetVisibilityChangedAnimationsEnabled(
613 bool value) { 613 bool value) {
614 // Much like the previous NativeWidgetGtk, we don't have anything to do here. 614 // Much like the previous NativeWidgetGtk, we don't have anything to do here.
615 } 615 }
616 616
617 bool DesktopRootWindowHostX11::ShouldUseNativeFrame() { 617 bool DesktopRootWindowHostX11::ShouldUseNativeFrame() {
618 return false; 618 return false;
619 } 619 }
620 620
621 void DesktopRootWindowHostX11::FrameTypeChanged() { 621 void DesktopRootWindowHostX11::FrameTypeChanged() {
622 // Replace the frame and layout the contents. Even though we don't have a
623 // swapable glass frame like on Windows, we still replace the frame because
624 // the button assets don't update otherwise.
625 native_widget_delegate_->AsWidget()->non_client_view()->UpdateFrame(true);
622 } 626 }
623 627
624 NonClientFrameView* DesktopRootWindowHostX11::CreateNonClientFrameView() { 628 NonClientFrameView* DesktopRootWindowHostX11::CreateNonClientFrameView() {
625 return NULL; 629 return NULL;
626 } 630 }
627 631
628 void DesktopRootWindowHostX11::SetFullscreen(bool fullscreen) { 632 void DesktopRootWindowHostX11::SetFullscreen(bool fullscreen) {
629 SetWMSpecState(fullscreen, 633 SetWMSpecState(fullscreen,
630 atom_cache_.GetAtom("_NET_WM_STATE_FULLSCREEN"), 634 atom_cache_.GetAtom("_NET_WM_STATE_FULLSCREEN"),
631 None); 635 None);
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 DesktopRootWindowHost* DesktopRootWindowHost::Create( 1197 DesktopRootWindowHost* DesktopRootWindowHost::Create(
1194 internal::NativeWidgetDelegate* native_widget_delegate, 1198 internal::NativeWidgetDelegate* native_widget_delegate,
1195 DesktopNativeWidgetAura* desktop_native_widget_aura, 1199 DesktopNativeWidgetAura* desktop_native_widget_aura,
1196 const gfx::Rect& initial_bounds) { 1200 const gfx::Rect& initial_bounds) {
1197 return new DesktopRootWindowHostX11(native_widget_delegate, 1201 return new DesktopRootWindowHostX11(native_widget_delegate,
1198 desktop_native_widget_aura, 1202 desktop_native_widget_aura,
1199 initial_bounds); 1203 initial_bounds);
1200 } 1204 }
1201 1205
1202 } // namespace views 1206 } // namespace views
OLDNEW
« chrome/chrome_browser.gypi ('K') | « ui/linux_ui/linux_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698