1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" 6 7 #include "base/logging.h" 8 9 const CGFloat LocationBarDecoration::kOmittedWidth = 0.0; 10 11 bool LocationBarDecoration::IsVisible() const { 12 return visible_; 13 } 14 15 void LocationBarDecoration::SetVisible(bool visible) { 16 visible_ = visible; 17 } 18 19 20 CGFloat LocationBarDecoration::GetWidthForSpace(CGFloat width) { 21 NOTREACHED(); 22 return kOmittedWidth; 23 } 24 25 void LocationBarDecoration::DrawInFrame(NSRect frame, NSView* control_view) { 26 NOTREACHED(); 27 } 28 29 NSString* LocationBarDecoration::GetToolTip() { 30 return nil; 31 } 32 33 bool LocationBarDecoration::AcceptsMousePress() { 34 return false; 35 } 36 37 bool LocationBarDecoration::IsDraggable() { 38 return false; 39 } 40 41 NSImage* LocationBarDecoration::GetDragImage() { 42 return nil; 43 } 44 45 NSRect LocationBarDecoration::GetDragImageFrame(NSRect frame) { 46 return NSZeroRect; 47 } 48 49 NSPasteboard* LocationBarDecoration::GetDragPasteboard() { 50 return nil; 51 } 52 53 bool LocationBarDecoration::OnMousePressed(NSRect frame) { 54 return false; 55 } 56 57 NSMenu* LocationBarDecoration::GetMenu() { 58 return nil; 59 } 60