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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 class FakeTheme : public ui::ThemeProvider { | 204 class FakeTheme : public ui::ThemeProvider { |
205 public: | 205 public: |
206 FakeTheme(NSColor* color) : color_(color) {} | 206 FakeTheme(NSColor* color) : color_(color) {} |
207 base::scoped_nsobject<NSColor> color_; | 207 base::scoped_nsobject<NSColor> color_; |
208 | 208 |
209 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE { | 209 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE { |
210 return NULL; | 210 return NULL; |
211 } | 211 } |
212 virtual SkColor GetColor(int id) const OVERRIDE { return SkColor(); } | 212 virtual SkColor GetColor(int id) const OVERRIDE { return SkColor(); } |
213 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE { | 213 virtual int GetDisplayProperty(int id) const OVERRIDE { |
214 return false; | 214 return -1; |
215 } | 215 } |
216 virtual bool ShouldUseNativeFrame() const OVERRIDE { return false; } | 216 virtual bool ShouldUseNativeFrame() const OVERRIDE { return false; } |
217 virtual bool HasCustomImage(int id) const OVERRIDE { return false; } | 217 virtual bool HasCustomImage(int id) const OVERRIDE { return false; } |
218 virtual base::RefCountedMemory* GetRawData( | 218 virtual base::RefCountedMemory* GetRawData( |
219 int id, | 219 int id, |
220 ui::ScaleFactor scale_factor) const OVERRIDE { | 220 ui::ScaleFactor scale_factor) const OVERRIDE { |
221 return NULL; | 221 return NULL; |
222 } | 222 } |
223 virtual NSImage* GetNSImageNamed(int id) const OVERRIDE { | 223 virtual NSImage* GetNSImageNamed(int id) const OVERRIDE { |
224 return nil; | 224 return nil; |
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 "2f3b ] 4b "); | 2074 "2f3b ] 4b "); |
2075 actual = BookmarkModelTestUtils::ModelStringFromNode(root); | 2075 actual = BookmarkModelTestUtils::ModelStringFromNode(root); |
2076 EXPECT_EQ(expected, actual); | 2076 EXPECT_EQ(expected, actual); |
2077 | 2077 |
2078 // Verify that the other bookmark folder can't be deleted. | 2078 // Verify that the other bookmark folder can't be deleted. |
2079 BookmarkButton *otherButton = [bar_ otherBookmarksButton]; | 2079 BookmarkButton *otherButton = [bar_ otherBookmarksButton]; |
2080 EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]); | 2080 EXPECT_FALSE([bar_ canDragBookmarkButtonToTrash:otherButton]); |
2081 } | 2081 } |
2082 | 2082 |
2083 } // namespace | 2083 } // namespace |
OLD | NEW |