summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_contents_controller.mm
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 20:37:09 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 20:37:09 +0000
commita3e4dd79aa7550b6a43ec1fb87e1026ec524f7d5 (patch)
treecc135fb2985b682cd53ef1021ed2f61238367fa3 /chrome/browser/cocoa/tab_contents_controller.mm
parent30dce773eb5fcd940ade62bdb8da8bd86b539744 (diff)
downloadchromium_src-a3e4dd79aa7550b6a43ec1fb87e1026ec524f7d5.zip
chromium_src-a3e4dd79aa7550b6a43ec1fb87e1026ec524f7d5.tar.gz
chromium_src-a3e4dd79aa7550b6a43ec1fb87e1026ec524f7d5.tar.bz2
ui refresh from cole. make it look chromey and get the basic framework for the views we'll need.
Review URL: http://codereview.chromium.org/18720 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_contents_controller.mm')
-rw-r--r--chrome/browser/cocoa/tab_contents_controller.mm28
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm
new file mode 100644
index 0000000..b19dcb1
--- /dev/null
+++ b/chrome/browser/cocoa/tab_contents_controller.mm
@@ -0,0 +1,28 @@
+// Copyright (c) 2009 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.
+
+#include "chrome/browser/cocoa/tab_contents_controller.h"
+
+@implementation TabContentsController
+
+- (id)initWithNibName:(NSString*)name bundle:(NSBundle*)bundle {
+ if ((self = [super initWithNibName:name bundle:bundle])) {
+ // nothing to do
+ }
+ return self;
+}
+
+- (void)awakeFromNib {
+ [locationBar_ setStringValue:@"http://dev.chromium.org"];
+}
+
+- (IBAction)fullScreen:(id)sender {
+ if ([[self view] isInFullScreenMode]) {
+ [[self view] exitFullScreenModeWithOptions:nil];
+ } else {
+ [[self view] enterFullScreenMode:[NSScreen mainScreen] withOptions:nil];
+ }
+}
+
+@end