| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/frame/bubble_frame_view.h" | 5 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/frame/bubble_window.h" | 10 #include "chrome/browser/chromeos/frame/bubble_window.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 int BubbleFrameView::NonClientHitTest(const gfx::Point& point) { | 128 int BubbleFrameView::NonClientHitTest(const gfx::Point& point) { |
| 129 return HTNOWHERE; | 129 return HTNOWHERE; |
| 130 } | 130 } |
| 131 | 131 |
| 132 void BubbleFrameView::GetWindowMask(const gfx::Size& size, | 132 void BubbleFrameView::GetWindowMask(const gfx::Size& size, |
| 133 gfx::Path* window_mask) { | 133 gfx::Path* window_mask) { |
| 134 } | 134 } |
| 135 | 135 |
| 136 void BubbleFrameView::EnableClose(bool enable) { | |
| 137 } | |
| 138 | |
| 139 void BubbleFrameView::ResetWindowControls() { | 136 void BubbleFrameView::ResetWindowControls() { |
| 140 } | 137 } |
| 141 | 138 |
| 142 void BubbleFrameView::UpdateWindowIcon() { | 139 void BubbleFrameView::UpdateWindowIcon() { |
| 143 } | 140 } |
| 144 | 141 |
| 145 gfx::Insets BubbleFrameView::GetInsets() const { | 142 gfx::Insets BubbleFrameView::GetInsets() const { |
| 146 return (style_ & STYLE_FLUSH) ? | 143 return (style_ & STYLE_FLUSH) ? |
| 147 gfx::Insets() : | 144 gfx::Insets() : |
| 148 gfx::Insets(kTitleTopPadding, | 145 gfx::Insets(kTitleTopPadding, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 canvas->GetSkCanvas()->drawPath(path, paint); | 214 canvas->GetSkCanvas()->drawPath(path, paint); |
| 218 } | 215 } |
| 219 | 216 |
| 220 void BubbleFrameView::ButtonPressed(views::Button* sender, | 217 void BubbleFrameView::ButtonPressed(views::Button* sender, |
| 221 const views::Event& event) { | 218 const views::Event& event) { |
| 222 if (close_button_ != NULL && sender == close_button_) | 219 if (close_button_ != NULL && sender == close_button_) |
| 223 frame_->Close(); | 220 frame_->Close(); |
| 224 } | 221 } |
| 225 | 222 |
| 226 } // namespace chromeos | 223 } // namespace chromeos |
| OLD | NEW |