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

Side by Side Diff: webkit/tools/test_shell/test_shell_mac.mm

Issue 5729005: webkit: use string16 in webkit_glue.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include <ApplicationServices/ApplicationServices.h> 5 #include <ApplicationServices/ApplicationServices.h>
6 #import <Cocoa/Cocoa.h> 6 #import <Cocoa/Cocoa.h>
7 #import <objc/objc-runtime.h> 7 #import <objc/objc-runtime.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include "webkit/tools/test_shell/test_shell.h" 10 #include "webkit/tools/test_shell/test_shell.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 NSRect r = [m_mainWnd contentRectForFrameRect:[m_mainWnd frame]]; 518 NSRect r = [m_mainWnd contentRectForFrameRect:[m_mainWnd frame]];
519 r.size.width = width; 519 r.size.width = width;
520 r.size.height = height + URLBAR_HEIGHT; 520 r.size.height = height + URLBAR_HEIGHT;
521 [m_mainWnd setFrame:[m_mainWnd frameRectForContentRect:r] display:YES]; 521 [m_mainWnd setFrame:[m_mainWnd frameRectForContentRect:r] display:YES];
522 } 522 }
523 523
524 void TestShell::ResizeSubViews() { 524 void TestShell::ResizeSubViews() {
525 // handled by Cocoa for us 525 // handled by Cocoa for us
526 } 526 }
527 527
528 /* static */ void TestShell::DumpAllBackForwardLists(std::wstring* result) { 528 /* static */ void TestShell::DumpAllBackForwardLists(string16* result) {
529 result->clear(); 529 result->clear();
530 for (WindowList::iterator iter = TestShell::windowList()->begin(); 530 for (WindowList::iterator iter = TestShell::windowList()->begin();
531 iter != TestShell::windowList()->end(); iter++) { 531 iter != TestShell::windowList()->end(); iter++) {
532 NSWindow* window = *iter; 532 NSWindow* window = *iter;
533 WindowMap::iterator it = window_map_.Get().find(window); 533 WindowMap::iterator it = window_map_.Get().find(window);
534 if (it != window_map_.Get().end()) 534 if (it != window_map_.Get().end())
535 it->second->DumpBackForwardList(result); 535 it->second->DumpBackForwardList(result);
536 else 536 else
537 LOG(ERROR) << "Failed to find shell for window during dump"; 537 LOG(ERROR) << "Failed to find shell for window during dump";
538 } 538 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 return false; 735 return false;
736 } 736 }
737 737
738 void DidLoadPlugin(const std::string& filename) { 738 void DidLoadPlugin(const std::string& filename) {
739 } 739 }
740 740
741 void DidUnloadPlugin(const std::string& filename) { 741 void DidUnloadPlugin(const std::string& filename) {
742 } 742 }
743 743
744 } // namespace webkit_glue 744 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698