| 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 | |
| 606 void PanelView::UpdatePanelMinimizeRestoreButtonVisibility() { | 602 void PanelView::UpdatePanelMinimizeRestoreButtonVisibility() { |
| 607 GetFrameView()->UpdateTitlebarMinimizeRestoreButtonVisibility(); | 603 GetFrameView()->UpdateTitlebarMinimizeRestoreButtonVisibility(); |
| 608 } | 604 } |
| 609 | 605 |
| 610 void PanelView::SetWindowCornerStyle(panel::CornerStyle corner_style) { | 606 void PanelView::SetWindowCornerStyle(panel::CornerStyle corner_style) { |
| 611 GetFrameView()->SetWindowCornerStyle(corner_style); | 607 GetFrameView()->SetWindowCornerStyle(corner_style); |
| 612 } | 608 } |
| 613 | 609 |
| 614 void PanelView::PanelExpansionStateChanging(Panel::ExpansionState old_state, | 610 void PanelView::PanelExpansionStateChanging(Panel::ExpansionState old_state, |
| 615 Panel::ExpansionState new_state) { | 611 Panel::ExpansionState new_state) { |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 DCHECK(thickness_for_mouse_resizing > 0); | 1135 DCHECK(thickness_for_mouse_resizing > 0); |
| 1140 SkRegion* region = new SkRegion; | 1136 SkRegion* region = new SkRegion; |
| 1141 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); | 1137 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); |
| 1142 region->op(width - thickness_for_mouse_resizing, 0, width, height, | 1138 region->op(width - thickness_for_mouse_resizing, 0, width, height, |
| 1143 SkRegion::kUnion_Op); | 1139 SkRegion::kUnion_Op); |
| 1144 region->op(0, height - thickness_for_mouse_resizing, width, height, | 1140 region->op(0, height - thickness_for_mouse_resizing, width, height, |
| 1145 SkRegion::kUnion_Op); | 1141 SkRegion::kUnion_Op); |
| 1146 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); | 1142 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); |
| 1147 #endif | 1143 #endif |
| 1148 } | 1144 } |
| OLD | NEW |