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

Side by Side Diff: webkit/glue/webdevtoolsfrontend_impl.cc

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 10 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "config.h" 5 #include "config.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ContextMenuController.h" 9 #include "ContextMenuController.h"
10 #include "ContextMenuItem.h" 10 #include "ContextMenuItem.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 ++it) { 383 ++it) {
384 frontend->ExecuteScript(*it); 384 frontend->ExecuteScript(*it);
385 } 385 }
386 frontend->pending_incoming_messages_.clear(); 386 frontend->pending_incoming_messages_.clear();
387 return v8::Undefined(); 387 return v8::Undefined();
388 } 388 }
389 389
390 // static 390 // static
391 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsPlatform( 391 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsPlatform(
392 const v8::Arguments& args) { 392 const v8::Arguments& args) {
393 #if defined OS_MACOSX 393 #if defined(OS_MACOSX)
394 return v8String("mac-leopard"); 394 return v8String("mac-leopard");
395 #elif defined OS_LINUX 395 #elif defined(OS_LINUX)
396 return v8String("linux"); 396 return v8String("linux");
397 #else 397 #elif defined(OS_FREEBSD)
398 return v8String("freebsd");
399 #elif defined(OS_OPENBSD)
400 return v8String("openbsd");
401 #elif defined(OS_WIN)
398 return v8String("windows"); 402 return v8String("windows");
399 #endif 403 #endif
400 } 404 }
401 405
402 // static 406 // static
403 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsPort( 407 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsPort(
404 const v8::Arguments& args) { 408 const v8::Arguments& args) {
405 return v8::Undefined(); 409 return v8::Undefined();
406 } 410 }
407 411
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 536
533 frontend->menu_provider_ = MenuProvider::create(frontend, items); 537 frontend->menu_provider_ = MenuProvider::create(frontend, items);
534 538
535 ContextMenuController* menu_controller = frontend->web_view_impl_->page()-> 539 ContextMenuController* menu_controller = frontend->web_view_impl_->page()->
536 contextMenuController(); 540 contextMenuController();
537 menu_controller->showContextMenu(event, 541 menu_controller->showContextMenu(event,
538 frontend->menu_provider_); 542 frontend->menu_provider_);
539 543
540 return v8::Undefined(); 544 return v8::Undefined();
541 } 545 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698