Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_view.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Draws the view for the balloons. 5 // Draws the view for the balloons.
6 6
7 #ifndef CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ 7 #ifndef CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_
8 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ 8 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void Update() OVERRIDE; 55 virtual void Update() OVERRIDE;
56 virtual void RepositionToBalloon() OVERRIDE; 56 virtual void RepositionToBalloon() OVERRIDE;
57 virtual void Close(bool by_user) OVERRIDE; 57 virtual void Close(bool by_user) OVERRIDE;
58 virtual gfx::Size GetSize() const OVERRIDE; 58 virtual gfx::Size GetSize() const OVERRIDE;
59 virtual BalloonHost* GetHost() const OVERRIDE; 59 virtual BalloonHost* GetHost() const OVERRIDE;
60 60
61 void set_enable_web_ui(bool enable) { enable_web_ui_ = enable; } 61 void set_enable_web_ui(bool enable) { enable_web_ui_ = enable; }
62 62
63 private: 63 private:
64 // views::View interface. 64 // views::View interface.
65 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 65 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE;
66 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 66 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
67 virtual gfx::Size GetPreferredSize() OVERRIDE; 67 virtual gfx::Size GetPreferredSize() OVERRIDE;
68 68
69 // views::ViewMenuDelegate interface. 69 // views::ViewMenuDelegate interface.
70 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE; 70 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;
71 71
72 // views::WidgetDelegate interface. 72 // views::WidgetDelegate interface.
73 virtual void OnDisplayChanged() OVERRIDE; 73 virtual void OnDisplayChanged() OVERRIDE;
74 virtual void OnWorkAreaChanged() OVERRIDE; 74 virtual void OnWorkAreaChanged() OVERRIDE;
75 75
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 content::NotificationRegistrar notification_registrar_; 160 content::NotificationRegistrar notification_registrar_;
161 161
162 // Set to true if this is browser generate web UI. 162 // Set to true if this is browser generate web UI.
163 bool enable_web_ui_; 163 bool enable_web_ui_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); 165 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl);
166 }; 166 };
167 167
168 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ 168 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698