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

Unified Diff: chrome/browser/ui/views/wrench_menu.cc

Issue 6975051: Remove COMPOSITOR_2 flag, old compositor code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change conditional compile defines. Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/test/unit/chrome_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/wrench_menu.cc
diff --git a/chrome/browser/ui/views/wrench_menu.cc b/chrome/browser/ui/views/wrench_menu.cc
index 7e7023a86795bdc227fbdc7b4aaaf5250cdd809b..9094a9e2e1def3ac436b37cf0b8da963f24606bc 100644
--- a/chrome/browser/ui/views/wrench_menu.cc
+++ b/chrome/browser/ui/views/wrench_menu.cc
@@ -234,15 +234,6 @@ class ScheduleAllView : public views::View {
public:
ScheduleAllView() {}
-#if !defined(COMPOSITOR_2)
- virtual void SchedulePaintInRect(const gfx::Rect& r) {
- if (!IsVisible())
- return;
-
- if (parent())
- parent()->SchedulePaintInRect(GetMirroredBounds());
- }
-#else
virtual void SchedulePaintInRect(const gfx::Rect& r) {
View::SchedulePaintInRect(gfx::Rect(0, 0, width(), height()));
}
@@ -250,7 +241,6 @@ class ScheduleAllView : public views::View {
virtual void SchedulePaintInternal(const gfx::Rect& r) {
View::SchedulePaintInternal(gfx::Rect(0, 0, width(), height()));
}
-#endif
private:
DISALLOW_COPY_AND_ASSIGN(ScheduleAllView);
« no previous file with comments | « build/common.gypi ('k') | chrome/test/unit/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698