Commit b8f4b246 authored by jeremya@chromium.org's avatar jeremya@chromium.org

Remove unused fullscreen exit bubble class.

The FullscreenExitBubbleView class was used in a previous version of the UI, but has since been replaced.

BUG=none
TEST=none


Review URL: http://codereview.chromium.org/8351022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107068 0039d316-1c4b-4281-b951-d872f2087c98
parent a3ac471a
// 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.
#ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
#define CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
#pragma once
#import <Cocoa/Cocoa.h>
#include "chrome/browser/ui/cocoa/background_gradient_view.h"
// A view that handles painting the background for the Fullscreen Exit Bubble.
@interface FullscreenExitBubbleView : BackgroundGradientView
// Specifies that mouse events over this view should be ignored by the
// render host.
- (BOOL)nonWebContentView;
@end
#endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
// 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/fullscreen_exit_bubble_view.h"
#import "chrome/browser/ui/cocoa/nsview_additions.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
#import "chrome/browser/ui/cocoa/url_drop_target.h"
#import "chrome/browser/ui/cocoa/view_id_util.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
CGFloat kCurveSize = 8;
@implementation FullscreenExitBubbleView
- (void)drawRect:(NSRect)rect {
const CGFloat lineWidth = [self cr_lineWidth];
rect = NSOffsetRect([self bounds], 0, lineWidth*2);
NSPoint topLeft = NSMakePoint(NSMinX(rect), NSMaxY(rect));
NSPoint topRight = NSMakePoint(NSMaxX(rect), NSMaxY(rect));
NSPoint midLeft =
NSMakePoint(NSMinX(rect), NSMinY(rect) + kCurveSize);
NSPoint midRight =
NSMakePoint(NSMaxX(rect), NSMinY(rect) + kCurveSize);
NSPoint bottomLeft =
NSMakePoint(NSMinX(rect) + kCurveSize, NSMinY(rect));
NSPoint bottomRight =
NSMakePoint(NSMaxX(rect) - kCurveSize, NSMinY(rect));
NSBezierPath* path = [NSBezierPath bezierPath];
[path moveToPoint:topLeft];
[path appendBezierPathWithArcWithCenter:NSMakePoint(bottomLeft.x, midLeft.y)
radius:kCurveSize startAngle:180 endAngle:270];
[path lineToPoint:bottomRight];
[path appendBezierPathWithArcWithCenter:NSMakePoint(bottomRight.x, midRight.y)
radius:kCurveSize startAngle:270 endAngle:360];
[path lineToPoint:topRight];
{
gfx::ScopedNSGraphicsContextSaveGState scopedGState;
[path addClip];
const NSRect bounds = [self bounds];
[[NSColor colorWithDeviceWhite:0 alpha:0.7] set];
NSRectFillUsingOperation(bounds, NSCompositeSourceOver);
}
}
// Eat all mouse events, to prevent clicks from falling through to views below.
- (void)mouseDown:(NSEvent *)theEvent {
}
- (void)rightMouseDown:(NSEvent *)theEvent {
}
- (void)otherMouseDown:(NSEvent *)theEvent {
}
- (void)mouseUp:(NSEvent *)theEvent {
}
- (void)rightMouseUp:(NSEvent *)theEvent {
}
- (void)otherMouseUp:(NSEvent *)theEvent {
}
- (void)mouseMoved:(NSEvent *)theEvent {
}
- (void)mouseDragged:(NSEvent *)theEvent {
}
- (void)rightMouseDragged:(NSEvent *)theEvent {
}
- (void)otherMouseDragged:(NSEvent *)theEvent {
}
// Specifies that mouse events over this view should be ignored by the
// render host.
- (BOOL)nonWebContentView {
return YES;
}
@end
...@@ -2597,8 +2597,6 @@ ...@@ -2597,8 +2597,6 @@
'browser/ui/cocoa/framed_browser_window.mm', 'browser/ui/cocoa/framed_browser_window.mm',
'browser/ui/cocoa/fullscreen_exit_bubble_controller.h', 'browser/ui/cocoa/fullscreen_exit_bubble_controller.h',
'browser/ui/cocoa/fullscreen_exit_bubble_controller.mm', 'browser/ui/cocoa/fullscreen_exit_bubble_controller.mm',
'browser/ui/cocoa/fullscreen_exit_bubble_view.h',
'browser/ui/cocoa/fullscreen_exit_bubble_view.mm',
'browser/ui/cocoa/fullscreen_window.h', 'browser/ui/cocoa/fullscreen_window.h',
'browser/ui/cocoa/fullscreen_window.mm', 'browser/ui/cocoa/fullscreen_window.mm',
'browser/ui/cocoa/global_error_bubble_controller.h', 'browser/ui/cocoa/global_error_bubble_controller.h',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment