| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 // Defines the public interface for the blocked popup notifications. This | 5 // Defines the public interface for the blocked popup notifications. This |
| 6 // interface should only be used by TabContents. Users and subclasses of | 6 // interface should only be used by TabContents. Users and subclasses of |
| 7 // TabContents should use the appropriate methods on TabContents to access | 7 // TabContents should use the appropriate methods on TabContents to access |
| 8 // information about blocked popups. | 8 // information about blocked popups. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ | 10 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 ~BlockedPopupContainerView(); | 45 ~BlockedPopupContainerView(); |
| 46 | 46 |
| 47 // Sets the label on the menu button | 47 // Sets the label on the menu button |
| 48 void UpdateLabel(); | 48 void UpdateLabel(); |
| 49 | 49 |
| 50 std::wstring label() const { return popup_count_label_->text(); } | 50 std::wstring label() const { return popup_count_label_->text(); } |
| 51 | 51 |
| 52 // Overridden from views::View: | 52 // Overridden from views::View: |
| 53 | 53 |
| 54 // Paints our border and background. (Does not paint children.) | 54 // Paints our border and background. (Does not paint children.) |
| 55 virtual void Paint(ChromeCanvas* canvas); | 55 virtual void Paint(gfx::Canvas* canvas); |
| 56 // Sets positions of all child views. | 56 // Sets positions of all child views. |
| 57 virtual void Layout(); | 57 virtual void Layout(); |
| 58 // Gets the desired size of the popup notification. | 58 // Gets the desired size of the popup notification. |
| 59 virtual gfx::Size GetPreferredSize(); | 59 virtual gfx::Size GetPreferredSize(); |
| 60 | 60 |
| 61 // Overridden from views::ButtonListener: | 61 // Overridden from views::ButtonListener: |
| 62 virtual void ButtonPressed(views::Button* sender); | 62 virtual void ButtonPressed(views::Button* sender); |
| 63 | 63 |
| 64 // Overridden from Menu::Delegate: | 64 // Overridden from Menu::Delegate: |
| 65 | 65 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // bounds while animating in or out). | 320 // bounds while animating in or out). |
| 321 gfx::Rect bounds_; | 321 gfx::Rect bounds_; |
| 322 | 322 |
| 323 // The bottom right corner of where we should appear in our parent window. | 323 // The bottom right corner of where we should appear in our parent window. |
| 324 gfx::Point anchor_point_; | 324 gfx::Point anchor_point_; |
| 325 | 325 |
| 326 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 326 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 #endif | 329 #endif |
| OLD | NEW |