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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/view_ids.h" | 9 #include "chrome/browser/ui/view_ids.h" |
10 #include "chrome/browser/ui/views/frame/browser_frame.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 views::ImageButton* minimize_button() const { return minimize_button_; } | 91 views::ImageButton* minimize_button() const { return minimize_button_; } |
92 views::ImageButton* maximize_button() const { return maximize_button_; } | 92 views::ImageButton* maximize_button() const { return maximize_button_; } |
93 views::ImageButton* restore_button() const { return restore_button_; } | 93 views::ImageButton* restore_button() const { return restore_button_; } |
94 views::ImageButton* close_button() const { return close_button_; } | 94 views::ImageButton* close_button() const { return close_button_; } |
95 | 95 |
96 // views::View: | 96 // views::View: |
97 void OnPaint(gfx::Canvas* canvas) override; | 97 void OnPaint(gfx::Canvas* canvas) override; |
98 | 98 |
99 // BrowserNonClientFrameView: | 99 // BrowserNonClientFrameView: |
100 bool ShouldPaintAsThemed() const override; | 100 bool ShouldPaintAsThemed() const override; |
101 void UpdateNewStyleAvatar() override; | 101 void UpdateNewAvatarButtonImpl() override; |
102 | 102 |
103 private: | 103 private: |
104 // views::NonClientFrameView: | 104 // views::NonClientFrameView: |
105 bool DoesIntersectRect(const views::View* target, | 105 bool DoesIntersectRect(const views::View* target, |
106 const gfx::Rect& rect) const override; | 106 const gfx::Rect& rect) const override; |
107 | 107 |
108 // Creates, adds and returns a new image button with |this| as its listener. | 108 // Creates, adds and returns a new image button with |this| as its listener. |
109 // Memory is owned by the caller. | 109 // Memory is owned by the caller. |
110 views::ImageButton* InitWindowCaptionButton(int normal_image_id, | 110 views::ImageButton* InitWindowCaptionButton(int normal_image_id, |
111 int hot_image_id, | 111 int hot_image_id, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Background painter for the window frame. | 164 // Background painter for the window frame. |
165 scoped_ptr<views::FrameBackground> frame_background_; | 165 scoped_ptr<views::FrameBackground> frame_background_; |
166 | 166 |
167 // Observer that handles platform dependent configuration. | 167 // Observer that handles platform dependent configuration. |
168 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; | 168 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 170 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
171 }; | 171 }; |
172 | 172 |
173 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 173 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |