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

Unified Diff: ui/views/widget/desktop_root_window_host_win.cc

Issue 10958005: Trivial plumbing of some methods from DesktopNativeWidgetAura to DesktopRootWindowHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_root_window_host_win.cc
===================================================================
--- ui/views/widget/desktop_root_window_host_win.cc (revision 157638)
+++ ui/views/widget/desktop_root_window_host_win.cc (working copy)
@@ -20,6 +20,7 @@
#include "ui/views/widget/desktop_capture_client.h"
#include "ui/views/widget/desktop_screen_position_client.h"
#include "ui/views/widget/widget_delegate.h"
+#include "ui/views/win/fullscreen_handler.h"
#include "ui/views/win/hwnd_message_handler.h"
#include "ui/views/window/native_frame_view.h"
@@ -244,6 +245,46 @@
new NativeFrameView(GetWidget()) : NULL;
}
+void DesktopRootWindowHostWin::SetFullscreen(bool fullscreen) {
+ message_handler_->fullscreen_handler()->SetFullscreen(fullscreen);
+}
+
+bool DesktopRootWindowHostWin::IsFullscreen() const {
+ return message_handler_->fullscreen_handler()->fullscreen();
+}
+
+void DesktopRootWindowHostWin::SetOpacity(unsigned char opacity) {
+ message_handler_->SetOpacity(static_cast<BYTE>(opacity));
+ GetWidget()->GetRootView()->SchedulePaint();
+}
+
+void DesktopRootWindowHostWin::SetWindowIcons(
+ const gfx::ImageSkia& window_icon, const gfx::ImageSkia& app_icon) {
+ message_handler_->SetWindowIcons(window_icon, app_icon);
+}
+
+void DesktopRootWindowHostWin::SetAccessibleName(const string16& name) {
+ message_handler_->SetAccessibleName(name);
+}
+
+void DesktopRootWindowHostWin::SetAccessibleRole(
+ ui::AccessibilityTypes::Role role) {
+ message_handler_->SetAccessibleRole(role);
+}
+
+void DesktopRootWindowHostWin::SetAccessibleState(
+ ui::AccessibilityTypes::State state) {
+ message_handler_->SetAccessibleState(state);
+}
+
+void DesktopRootWindowHostWin::InitModalType(ui::ModalType modal_type) {
+ message_handler_->InitModalType(modal_type);
+}
+
+void DesktopRootWindowHostWin::FlashFrame(bool flash_frame) {
+ message_handler_->FlashFrame(flash_frame);
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostWin, RootWindowHost implementation:
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698