OLD | NEW |
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/panels/panel_view.h" | 5 #include "chrome/browser/ui/views/panels/panel_view.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 void PanelView::SetPanelAlwaysOnTop(bool on_top) { | 592 void PanelView::SetPanelAlwaysOnTop(bool on_top) { |
593 if (always_on_top_ == on_top) | 593 if (always_on_top_ == on_top) |
594 return; | 594 return; |
595 always_on_top_ = on_top; | 595 always_on_top_ = on_top; |
596 | 596 |
597 window_->SetAlwaysOnTop(on_top); | 597 window_->SetAlwaysOnTop(on_top); |
598 window_->non_client_view()->Layout(); | 598 window_->non_client_view()->Layout(); |
599 window_->client_view()->Layout(); | 599 window_->client_view()->Layout(); |
600 } | 600 } |
601 | 601 |
| 602 void PanelView::EnableResizeByMouse(bool enable) { |
| 603 // Nothing to do since we use system resizing. |
| 604 } |
| 605 |
602 void PanelView::UpdatePanelMinimizeRestoreButtonVisibility() { | 606 void PanelView::UpdatePanelMinimizeRestoreButtonVisibility() { |
603 GetFrameView()->UpdateTitlebarMinimizeRestoreButtonVisibility(); | 607 GetFrameView()->UpdateTitlebarMinimizeRestoreButtonVisibility(); |
604 } | 608 } |
605 | 609 |
606 void PanelView::SetWindowCornerStyle(panel::CornerStyle corner_style) { | 610 void PanelView::SetWindowCornerStyle(panel::CornerStyle corner_style) { |
607 GetFrameView()->SetWindowCornerStyle(corner_style); | 611 GetFrameView()->SetWindowCornerStyle(corner_style); |
608 } | 612 } |
609 | 613 |
610 void PanelView::PanelExpansionStateChanging(Panel::ExpansionState old_state, | 614 void PanelView::PanelExpansionStateChanging(Panel::ExpansionState old_state, |
611 Panel::ExpansionState new_state) { | 615 Panel::ExpansionState new_state) { |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 DCHECK(thickness_for_mouse_resizing > 0); | 1139 DCHECK(thickness_for_mouse_resizing > 0); |
1136 SkRegion* region = new SkRegion; | 1140 SkRegion* region = new SkRegion; |
1137 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); | 1141 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); |
1138 region->op(width - thickness_for_mouse_resizing, 0, width, height, | 1142 region->op(width - thickness_for_mouse_resizing, 0, width, height, |
1139 SkRegion::kUnion_Op); | 1143 SkRegion::kUnion_Op); |
1140 region->op(0, height - thickness_for_mouse_resizing, width, height, | 1144 region->op(0, height - thickness_for_mouse_resizing, width, height, |
1141 SkRegion::kUnion_Op); | 1145 SkRegion::kUnion_Op); |
1142 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); | 1146 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); |
1143 #endif | 1147 #endif |
1144 } | 1148 } |
OLD | NEW |