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

Unified Diff: chrome/browser/ui/cocoa/toolbar/toolbar_view.mm

Issue 657443004: MacViews: Get views based toolbar to compile on the Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-findbar
Patch Set: Rebase Created 6 years, 2 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
Index: chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
deleted file mode 100644
index 18bf58b6fd59a685bf958eedf88588f02d71a853..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "chrome/browser/ui/cocoa/toolbar/toolbar_view.h"
-
-#import "chrome/browser/ui/cocoa/themed_window.h"
-#import "chrome/browser/ui/cocoa/view_id_util.h"
-#import "ui/base/cocoa/nsgraphics_context_additions.h"
-
-@implementation ToolbarView
-
-@synthesize dividerOpacity = dividerOpacity_;
-
-// Prevent mouse down events from moving the parent window around.
-- (BOOL)mouseDownCanMoveWindow {
- return NO;
-}
-
-- (void)drawRect:(NSRect)rect {
- NSPoint position = [[self window]
- themeImagePositionForAlignment:THEME_IMAGE_ALIGN_WITH_TAB_STRIP];
- [[NSGraphicsContext currentContext] cr_setPatternPhase:position forView:self];
- [self drawBackgroundWithOpaque:YES];
-}
-
-// Override of |-[BackgroundGradientView strokeColor]|; make it respect opacity.
-- (NSColor*)strokeColor {
- return [[super strokeColor] colorWithAlphaComponent:[self dividerOpacity]];
-}
-
-- (BOOL)accessibilityIsIgnored {
- return NO;
-}
-
-- (id)accessibilityAttributeValue:(NSString*)attribute {
- if ([attribute isEqual:NSAccessibilityRoleAttribute])
- return NSAccessibilityToolbarRole;
-
- return [super accessibilityAttributeValue:attribute];
-}
-
-- (ViewID)viewID {
- return VIEW_ID_TOOLBAR;
-}
-
-- (BOOL)isOpaque {
- return YES;
-}
-
-@end
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_view.h ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698